[scilab-Users] How to force SCILAB to stop changing the range of the plot

Serge Steer Serge.Steer at inria.fr
Wed Jul 18 16:11:01 CEST 2012


Le 18/07/2012 16:03, CRETE Denis a écrit :
> Hello,
> With plot2d(), specify option frameflag=0, e.g. plot2d(X,Y, frameflag=0)
>
> 2: no difference between ax = get("current_axes"); and ax = gca();
> HTH
> Denis
>
> -----Message d'origine-----
> De : allsey87 [mailto:allsey87 at gmail.com]
> Envoyé : mercredi 18 juillet 2012 15:07
> À : users at lists.scilab.org
> Objet : [scilab-Users] How to force SCILAB to stop changing the range of the plot
>
> Hi,
>
> I think I must have tried almost everything to get SCILAB to stop changing the range of the plot, and nothing has been working!
>
> How can I force SCILAB to restrict the plotting range over a given interval, respectively with a given aspect ratio, and not change the minimum and maximum values on the axis regardless of whether the data is within the given range.
>
> This seems so trivial but the documentation is a bit incomplete in this area I think, it seems to hint that setting the data_bounds member of the axis will do what I want, but regardless of how and when I set the data_bounds member the plot changes its range as soon as the data does not fit.
>
> A couple related questions I have on this topic are:
>
> 1.clf; clear figure / does this also reset all axis members to their defaults?
yes
> 2. what is the difference between these two calls: ax = get("current_axes"); and ax = gca();
none
> 3. What impact does this command have, ax.auto_scale = "off";
It just what you are looking for:
plot(1:5);
ax=gca();
ax.auto_scale='off';
plot(2:6,'r')
>
> 4. after I modify ax, is this actually referring to my current axes,
exactly, see the example just above
> or is it just a copy that I must then reapply using a set("current_axes", ax)?

> Please help! =)
>
> --
> View this message in context: http://mailinglists.scilab.org/How-to-force-SCILAB-to-stop-changing-the-range-of-the-plot-tp4024602.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to users-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see http://mailinglists.scilab.org/
>
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> users-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/
>
>




More information about the users mailing list