Clear Filters
Clear Filters

Plotting only one axis

27 views (last 30 days)
Jetson Ronald
Jetson Ronald on 8 Jun 2012
Hello I am having a plot and I don't want to use the axis off command to remove the information in both axes, but I want to have the information in the X-axis and want the Y-axis to be completely free. Kindly help me how to do that.

Answers (2)

Aurelien Queffurust
Aurelien Queffurust on 8 Jun 2012
I would use these commands:

Jessica Lam
Jessica Lam on 8 Jun 2012
You may set the axis color same as the background color .
  1 Comment
Jessica Lam
Jessica Lam on 8 Jun 2012
You may find the following code for your reference.
axes1 = axes('Parent',figure1,...
'YColor', get(figure1,'Color'));
plot (1:10,'b');

Sign in to comment.


Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!