I have a function like this:
plot(f,Body, 'r', f,Walk, 'b', 'LineWidth' , 3);
I want to put fine grid in the plot. How do I do this.
Tried this
plot(f,Body, 'r', f,Walk, 'b', 'LineWidth' , 3);
GridVisible = TRUE,
SubgridVisible = TRUE;
but failed.
try to add after your plot line either
grid on
or ,
grid minor
To add labels get the positions of the minor grid ticks using the XMinorTick
, YMinorTick
properties, and add them as labels using the XTickLabel
, YTickLabel
properties. See more in Matlab documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With