From: Ásta Ósk on
I am trying to create axes with tickmarks (and gridlines) at specific values. I only want major grid lines (these that I specified).

This is my code:
vigurx=[0.1 0.2 0.5 1 2 5 10 20 50 100 200 300];
vigury=[ 1 2 5 10 20 50 100 200 500 1000 2000 5000 10000 20000 50000 100000];

axes('XScale', 'log', 'YScale', 'log', 'ylim', [1 100000], 'xlim', [0.1 300], 'GridLineStyle', '-', 'XTick', vigurx, 'YTick', vigury, 'TickDir','out', 'XMinorGrid', 'off', 'YMinorGrid', 'off', 'MinorGridLineStyle', 'none');

This code opens up a figure that has minor tick marks at 0.4, 4, 40 etc.

Can you see something that I don't see? Why is this happening?

Best regards,
Ásta Ósk