|
From: Mojca M. <moj...@gm...> - 2011-12-08 21:27:01
|
Dear gnuplotters,
I'm sorry for the slightly weird question, but I'm experiencing a
weird behaviour with x11 terminal (under Mac OS X; I used to use Aqua
a lot so far, so I'm not very familiar with mouse events ...).
If I run
plot 'somedata' w l
and then zoom into the data with mouse's scroll wheel (+shift and
ctrl), I'm unable to reset the range back to the original one. replot
has zero effect. Another plot just leaves the range where mouse left
it last.
I can do
set xrange restore
set yrange restore
but this only sets the range to [-10:10] [-5:5] and any subsequent
plot without an explicit range will fail to produce any useful result
unless I quit gnuplot and start it again.
I would be grateful for any hints. Thank you,
Mojca
|
|
From: Ethan M. <merritt@u.washington.edu> - 2011-12-08 21:37:44
|
On Thursday, December 08, 2011 01:26:54 pm Mojca Miklavec wrote: > Dear gnuplotters, > > I'm sorry for the slightly weird question, but I'm experiencing a > weird behaviour with x11 terminal (under Mac OS X; I used to use Aqua > a lot so far, so I'm not very familiar with mouse events ...). > > If I run > plot 'somedata' w l > and then zoom into the data with mouse's scroll wheel (+shift and > ctrl), I'm unable to reset the range back to the original one. replot > has zero effect. Another plot just leaves the range where mouse left > it last. Correct. "replot" does not change the current range of the plot. You can can type "unzoom" to return to the original scale, or you can step back and forth through previous zoom operations by using the 'p' or 'n' hotkeys in the plot window. If you had trouble finding this information in the help system or documentation, please tell us where you tried to look so that we can add appropriate cross-indexing or a new section. Ethan > > I can do > set xrange restore > set yrange restore > but this only sets the range to [-10:10] [-5:5] and any subsequent > plot without an explicit range will fail to produce any useful result > unless I quit gnuplot and start it again. > > I would be grateful for any hints. Thank you, > Mojca > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point of > discussion for anyone considering optimizing the pricing and packaging model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center, K-428 Health Sciences Bldg University of Washington, Seattle 98195-7742 |
|
From: Mojca M. <moj...@gm...> - 2011-12-08 22:01:35
|
On Thu, Dec 8, 2011 at 22:36, Ethan Merritt wrote:
> On Thursday, December 08, 2011 01:26:54 pm Mojca Miklavec wrote:
>> Dear gnuplotters,
>>
>> I'm sorry for the slightly weird question, but I'm experiencing a
>> weird behaviour with x11 terminal (under Mac OS X; I used to use Aqua
>> a lot so far, so I'm not very familiar with mouse events ...).
>>
>> If I run
>> plot 'somedata' w l
>> and then zoom into the data with mouse's scroll wheel (+shift and
>> ctrl), I'm unable to reset the range back to the original one. replot
>> has zero effect. Another plot just leaves the range where mouse left
>> it last.
>
> Correct. "replot" does not change the current range of the plot.
> You can can type "unzoom" to return to the original scale, or
> you can step back and forth through previous zoom operations by
> using the 'p' or 'n' hotkeys in the plot window.
Thank you.
The keys p and n help (it may happen that one has to hold 'p' for a
very very long time though if there were many iterations done with a
mouse), however 'unzoom' is not recognized.
> If you had trouble finding this information in the help system
> or documentation, please tell us where you tried to look so that
> we can add appropriate cross-indexing or a new section.
Mostly 'help xrange'. (The entry 'zoom' doesn't exist in help either,
but I didn't even think about using it until you suggested to type
unzoom.)
I've seen key kommands in wxt nicely documented somewhere (I'm trying
to install wxwidgets now, I don't remember how exactly it is done
there), but the same documentation is missing in x11, probably also
because it takes quite some space and many experienced users might
start complaining if a big bunch of help text pops up :)
But even now that I know about p & n: how can I reset the range for
plotting data to the same state as when gnuplot is started? So that it
doesn't default to [-10:10][5:5], but adjust to data range instead.
Thank you very much,
Mojca
|
|
From: Ethan A M. <sf...@us...> - 2011-12-08 22:17:29
|
On Thursday, December 08, 2011 02:01:29 pm Mojca Miklavec wrote: > On Thu, Dec 8, 2011 at 22:36, Ethan Merritt wrote: > > On Thursday, December 08, 2011 01:26:54 pm Mojca Miklavec wrote: > >> Dear gnuplotters, > >> > >> I'm sorry for the slightly weird question, but I'm experiencing a > >> weird behaviour with x11 terminal (under Mac OS X; I used to use Aqua > >> a lot so far, so I'm not very familiar with mouse events ...). > >> > >> If I run > >> plot 'somedata' w l > >> and then zoom into the data with mouse's scroll wheel (+shift and > >> ctrl), I'm unable to reset the range back to the original one. replot > >> has zero effect. Another plot just leaves the range where mouse left > >> it last. > > > > Correct. "replot" does not change the current range of the plot. > > You can can type "unzoom" to return to the original scale, or > > you can step back and forth through previous zoom operations by > > using the 'p' or 'n' hotkeys in the plot window. > > Thank you. > > The keys p and n help (it may happen that one has to hold 'p' for a > very very long time though if there were many iterations done with a > mouse), however 'unzoom' is not recognized. That is very strange. 'unzoom' is a standard command that should always be recognized. Or you can use the 'u' hotkey in the plot window. > But even now that I know about p & n: how can I reset the range for > plotting data to the same state as when gnuplot is started? So that it > doesn't default to [-10:10][5:5], but adjust to data range instead. I don't understand the question. 'unzoom' will return to the same state as the previous 'plot' command, but that isn't the same thing as "when gnuplot is started". Are you asking about 'set autoscale'? Ethan |
|
From: Ethan A M. <sf...@us...> - 2011-12-08 22:23:46
|
On Thursday, December 08, 2011 02:01:29 pm Mojca Miklavec wrote: >> however 'unzoom' is not recognized. > That is very strange. 'unzoom' is a standard command that should always > be recognized. Or you can use the 'u' hotkey in the plot window. What's even stranger is that my memory obviously isn't working so well today. The 'u' hotkey does exist, as does an 'unzoom' widget in various terminals. But 'unzoom' at the command line is apparently a figment of my imagination. That seems like an oversight that can be fixed! Ethan |