Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1442 > unrolled thread
| Started by | jfstanton@gmail.com |
|---|---|
| First post | 2012-10-28 09:37 -0700 |
| Last post | 2012-10-29 11:35 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
this should not be so difficult ? jfstanton@gmail.com - 2012-10-28 09:37 -0700
Re: this should not be so difficult ? sfeam <sfeam@users.sourceforge.net> - 2012-10-28 10:23 -0700
Re: this should not be so difficult ? John Stanton <jfstanton@gmail.com> - 2012-10-29 10:14 -0700
Re: this should not be so difficult ? sfeam <sfeam@users.sourceforge.net> - 2012-10-29 11:17 -0700
Re: this should not be so difficult ? John Stanton <jfstanton@gmail.com> - 2012-10-29 11:35 -0700
| From | jfstanton@gmail.com |
|---|---|
| Date | 2012-10-28 09:37 -0700 |
| Subject | this should not be so difficult ? |
| Message-ID | <2c174863-e68d-4c1b-b310-75da21b94488@googlegroups.com> |
To reduce my problem down to something very simple, I have created the input file (called 'in' below): set term x11 persist set view 0,0 set pm3d set palette splot x**2+y**2 If I go into gnuplot and type load 'in' everything works just fine. If, on the other hand, I execute gnuplot < in everything works EXCEPT that the association of mouse position with plot coordinates is lost. It simply displays x=0 and y=0 in the lower-left corner and has no response at all when I move the mouse. However, if I change this to a one dimensional plot set term x11 persist plot x**2 then the mousing business works either way I invoke the file. Help!!!! I am running gnuplot 4.6.0 on a MBP...
[toc] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2012-10-28 10:23 -0700 |
| Message-ID | <k6jpn8$8al$1@dont-email.me> |
| In reply to | #1442 |
jfstanton@gmail.com wrote: > > To reduce my problem down to something very simple, I have created > the input file (called 'in' below) What task are you trying to accomplish? > : > > set term x11 persist > set view 0,0 > set pm3d > set palette > splot x**2+y**2 > > If I go into gnuplot and type > > load 'in' > > everything works just fine. If, on the other hand, I execute > > gnuplot < in > > everything works EXCEPT that the association of mouse position with > plot coordinates is lost. It simply displays x=0 and y=0 in the > lower-left corner and has no response at all when I move the mouse. > However, if I change this to a one dimensional plot > > set term x11 persist > plot x**2 > > then the mousing business works either way I invoke the file. > > Help!!!! I am running gnuplot 4.6.0 on a MBP...
[toc] | [prev] | [next] | [standalone]
| From | John Stanton <jfstanton@gmail.com> |
|---|---|
| Date | 2012-10-29 10:14 -0700 |
| Message-ID | <6ae1bc3d-b1f1-48f6-b938-f62a10acd149@googlegroups.com> |
| In reply to | #1443 |
Simply to put a plot up on my screen (necessary to read in the data from a file) and then move the cursor around and pick off the coordinates.
[toc] | [prev] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2012-10-29 11:17 -0700 |
| Message-ID | <k6mh7a$jlp$1@dont-email.me> |
| In reply to | #1445 |
John Stanton wrote:
>
> Simply to put a plot up on my screen (necessary to read in the data
> from a file) and then move the cursor around and pick off the
> coordinates.
Simplest answer:
Add a line at the end of your script file "pause mouse key"
Now invoke it like this:
gnuplot infile &
Mousing will continue to work, including middle-click to print coordinats
on the plot, until you hit some keyboard key while the plot window has focus.
More information:
There are two things contributing to your problem.
One is that you would do better to use "set view map"
rather than "set view 0,0".
However there is apparently an x11 terminal specific bug that
prevents your test case from working even with set view map.
The development version of gnuplot contains a fix,
but that doesn't help you right now.
[toc] | [prev] | [next] | [standalone]
| From | John Stanton <jfstanton@gmail.com> |
|---|---|
| Date | 2012-10-29 11:35 -0700 |
| Message-ID | <c34a8d05-e2d0-4128-ae6d-d8b88ebba06b@googlegroups.com> |
| In reply to | #1448 |
Thank you. That works beautifully.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web