Filter löschen
Filter löschen

How do I hold the current plot but not the axis properties?

1 Ansicht (letzte 30 Tage)
Erik  Langholz
Erik Langholz am 9 Jul. 2015
Kommentiert: Erik Langholz am 13 Jul. 2015
I'm creating a GUI that can plot multiple functions on the same plot, depending on which data-set I choose. If I use hold on, the axis on the plot doesn't change and the next data-set might not be completely displayed. I want to keep the current data on the plot but have another data-set plotted and have the axis scale so that both sets can be seen.

Antworten (1)

Matthew am 9 Jul. 2015
Check to make sure that your axes XLimMode and YLimMode is set to auto.
hold on;
seems to work fine, so your issue may not really be with the hold command.
  1 Kommentar
Erik  Langholz
Erik Langholz am 13 Jul. 2015
Yup, that works. I'm having trouble with using a polar plot.
hold on;
This runs into the same problem I'm having. If I use axis auto, the polar(1:10:100) fits in the plot but the axis doesn't scale properly.

Melden Sie sich an, um zu kommentieren.


Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by