|
From: Mojca M. <moj...@gm...> - 2009-07-21 13:11:18
|
On Tue, Jul 21, 2009 at 14:39, Thomas Sefzick wrote: > > set xrange [] noreverse Thanks. But shouldn't it change back automatically? It automatically changes to "reverse" as soon as one uses [more:less], but doesn't automatically change back. I mean ... > show xrange set xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) > plot [0:10] sin(x) > show xrange set xrange [ * : * ] noreverse nowriteback # (currently [0.00000:10.0000] ) > plot sin(x) # only "currently" changes, but gets restored as soon as one drops using explicit [:] > show xrange set xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) > plot [10:0] sin(x) > show xrange set xrange [ * : * ] reverse nowriteback # (currently [10.0000:0.00000] ) > plot sin(x) # in my opinion this should become "noreverse" automatically # unless someone uses "set xrange [] reverse" by explicitely calling it > show xrange set xrange [ * : * ] reverse nowriteback # (currently [10.0000:-10.0000] ) I didn't check internals, but maybe a separate variable is needed to track "current reverse" just as there is "current range" after #. Mojca > Mojca Miklavec wrote: >> >> Hello, >> >> I accidentally used "plot [bigger:smaller]", but when I corrected the >> mistake, the plotting range didn't restore to the appropriate value. >> Would it make sense to fix that behaviour? >> >> Example: >> >> # ok >> plot [0:10] sin(x) >> # ok >> plot [10:0] sin(x) >> # wrong; plots as [10:0]; "set xrange restore" doesn't help; only "reset" >> does >> plot [0:10] sin(x) >> >> Thanks, >> Mojca |