|
From: Jon <dev...@gm...> - 2010-10-02 17:35:06
|
It seems locating an accurate position on a graph to put some label or arrow on needs try and wrong many times if using graph or screen coordinate, which is time-consuming. I notice that gnuplot provide a functionality to show the coordinate of the cursor at the left-bottom of the window real time using first coordinate, which is so helpful to use. I am wondering whether gnuplot could do something similar by adding a command-line command to toggle between different types of coordinates to display. Just a simple thought, thanks for your friendly suggestions and kind consideration John |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2010-10-02 18:27:53
|
On 02.10.2010 19:35, Jon wrote: > coordinate of the cursor at the left-bottom of the window real time using > first coordinate, which is so helpful to use. I am wondering whether gnuplot > could do something similar by adding a command-line command to toggle > between different types of coordinates to display. gnuplot can already display the current mouse position in graph coordinates. It's mouse format number 2, reachable either via the 'set mouse' command option 'mouseformat', or via the default bindings '1' and '2' of mouse interaction. |
|
From: Jon <dev...@gm...> - 2010-10-02 22:58:24
|
2010/10/2 Hans-Bernhard Bröker <HBB...@t-...> > On 02.10.2010 19:35, Jon wrote: > > coordinate of the cursor at the left-bottom of the window real time using >> first coordinate, which is so helpful to use. I am wondering whether >> gnuplot >> could do something similar by adding a command-line command to toggle >> between different types of coordinates to display. >> > > gnuplot can already display the current mouse position in graph > coordinates. It's mouse format number 2, reachable either via the 'set > mouse' command option 'mouseformat', or via the default bindings '1' and '2' > of mouse interaction. > Thanks for letting me aware of this command. But it seems it cannot choose to display the coordinate in graph or screen format, but only in first format. Am i right? |
|
From: Tatsuro M. <tma...@ya...> - 2010-10-03 08:20:51
|
Hello
Press 'h' at the graph window. You can see the help on key board commands and mouse operations on the
graph windows. The help appears in the command windows.
For the convenience, I paste them the below
*********************************************
2x<B1> print coordinates to clipboard using `clipboardformat`
(see keys '3', '4')
<B2> annotate the graph using `mouseformat` (see keys '1', '2')
or draw labels if `set mouse labels is on`
<Ctrl-B2> remove label close to pointer if `set mouse labels` is on
<B3> mark zoom region (only for 2d-plots and maps).
<B1-Motion> change view (rotation). Use <ctrl> to rotate the axes only.
<B2-Motion> change view (scaling). Use <ctrl> to scale the axes only.
<Shift-B2-Motion> vertical motion -- change xyplane
<wheel-up> scroll up (in +Y direction).
<wheel-down> scroll down.
<shift-wheel-up> scroll left (in -X direction).
<shift-wheel-down> scroll right.
<control-wheel-up> zoom in toward the center of the plot.
<control-wheel-down> zoom out.
<shift-control-wheel-up> zoom in only the X axis.
<shift-control-wheel-down> zoom out only the X axis.
Space raise gnuplot console window
q * close this plot window
a `builtin-autoscale` (set autoscale keepfix; replot)
b `builtin-toggle-border`
e `builtin-replot`
g `builtin-toggle-grid`
h `builtin-help`
l `builtin-toggle-log` y logscale for plots, z and cb for splots
L `builtin-nearest-log` toggle logscale of axis nearest cursor
m `builtin-toggle-mouse`
r `builtin-toggle-ruler`
1 `builtin-decrement-mousemode`
2 `builtin-increment-mousemode`
3 `builtin-decrement-clipboardmode`
4 `builtin-increment-clipboardmode`
5 `builtin-toggle-polardistance`
6 `builtin-toggle-verbose`
7 `builtin-toggle-ratio`
n `builtin-zoom-next` go to next zoom in the zoom stack
p `builtin-zoom-previous` go to previous zoom in the zoom stack
u `builtin-unzoom`
Right `builtin-rotate-right` only for splots; <shift> increases amount
Up `builtin-rotate-up` only for splots; <shift> increases amount
Left `builtin-rotate-left` only for splots; <shift> increases amount
Down `builtin-rotate-down` only for splots; <shift> increases amount
Escape `builtin-cancel-zoom` cancel zoom region
*******************************
Note that you cannot use the above in the multiplot mode.
Regards
Tatsuro
--- Jon wrote:
> 2010/10/2 Hans-Bernhard Br将モker <HBB...@t-...>
>
> > On 02.10.2010 19:35, Jon wrote:
> >
> > coordinate of the cursor at the left-bottom of the window real time using
> >> first coordinate, which is so helpful to use. I am wondering whether
> >> gnuplot
> >> could do something similar by adding a command-line command to toggle
> >> between different types of coordinates to display.
> >>
> >
> > gnuplot can already display the current mouse position in graph
> > coordinates. It's mouse format number 2, reachable either via the 'set
> > mouse' command option 'mouseformat', or via the default bindings '1' and '2'
> > of mouse interaction.
> >
>
> Thanks for letting me aware of this command. But it seems it cannot choose
> to display the coordinate in graph or screen format, but only in first
> format. Am i right?
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
|
|
From: Hagen W. <ha...@gn...> - 2010-10-13 11:00:44
|
On Sat, 2 Oct 2010 12:35:00 -0500, Jon <dev...@gm...> wrote: > It seems locating an accurate position on a graph to put some label or arrow > on needs try and wrong many times if using graph or screen coordinate, which > is time-consuming. To find the right label position can be indeed very time-consuming if you have a lot of labels to put in a graph. I have solved the problem for my purposes by using an interactive way to get the right positions. Have a look at http://www.gnuplotting.org/interactive-label-placing/ for the basic functionality. But I'm not sure if this is the right thing for you, because the position is not given in screen coordinates. /Hagen |
|
From: BBands <bb...@gm...> - 2010-10-13 20:43:03
|
That is a nice little hack. Thanks, BBands On Wed, Oct 13, 2010 at 3:45 AM, Hagen Wierstorf <ha...@gn...> wrote: > > > On Sat, 2 Oct 2010 12:35:00 -0500, Jon <dev...@gm...> wrote: >> It seems locating an accurate position on a graph to put some label or arrow >> on needs try and wrong many times if using graph or screen coordinate, which >> is time-consuming. > > To find the right label position can be indeed very time-consuming if > you have a lot of labels to put in a graph. I have solved the problem > for my purposes by using an interactive way to get the right positions. > Have a look at http://www.gnuplotting.org/interactive-label-placing/ for > the basic functionality. > But I'm not sure if this is the right thing for you, because the > position is not given in screen coordinates. > > /Hagen > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- John Bollinger, CFA, CMT www.BollingerBands.com If you advance far enough, you arrive at the beginning. |
|
From: Jon <dev...@gm...> - 2010-10-14 08:25:15
|
Thanks, this is pretty nice! I don't know that gnuplot can do such complicated things. BTW, is it possible to modify the script to output the selected points into an output file given a specific format? Jon On Wed, Oct 13, 2010 at 5:45 AM, Hagen Wierstorf <ha...@gn...>wrote: > > > On Sat, 2 Oct 2010 12:35:00 -0500, Jon <dev...@gm...> wrote: > > It seems locating an accurate position on a graph to put some label or > arrow > > on needs try and wrong many times if using graph or screen coordinate, > which > > is time-consuming. > > To find the right label position can be indeed very time-consuming if > you have a lot of labels to put in a graph. I have solved the problem > for my purposes by using an interactive way to get the right positions. > Have a look at http://www.gnuplotting.org/interactive-label-placing/ for > the basic functionality. > But I'm not sure if this is the right thing for you, because the > position is not given in screen coordinates. > > /Hagen > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Hagen W. <ha...@gn...> - 2010-10-14 11:32:43
|
On Thu, 14 Oct 2010 03:25:05 -0500, Jon <dev...@gm...> wrote:
>
> BTW, is it possible to modify the script to output the selected
> points into an output file given a specific format?
>
Just add this two lines after the "label_number = label_number+1;\"
line in the label_loop.gnu file:
cmd = sprintf("echo \"set label '$0' at %.2f,%.2f textcolor 1\" >>
outfile.txt",MOUSE_X,MOUSE_Y);\
system(cmd);\
Now your final chosen position is appended to the file "outfile.txt"
with the whole line necessary to create this label.
/Hagen
> Jon
>
> On Wed, Oct 13, 2010 at 5:45 AM, Hagen Wierstorf wrote:
>
> On Sat, 2 Oct 2010 12:35:00 -0500, Jon wrote:
> > It seems locating an accurate position on a graph to put some
> label or arrow
> > on needs try and wrong many times if using graph or screen
> coordinate, which
> > is time-consuming.
>
> To find the right label position can be indeed very time-consuming
> if
> you have a lot of labels to put in a graph. I have solved the
> problem
> for my purposes by using an interactive way to get the right
> positions.
> Have a look at http://www.gnuplotting.org/interactive-label-placing/
> [3] for
> the basic functionality.
> But I'm not sure if this is the right thing for you, because the
> position is not given in screen coordinates.
>
> /Hagen
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating
> great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb [4]
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li... [5]
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info [6]
>
>
>
> Links:
> ------
> [1] mailto:ha...@gn...
> [2] mailto:dev...@gm...
> [3] http://www.gnuplotting.org/interactive-label-placing/
> [4] http://p.sf.net/sfu/beautyoftheweb
> [5] mailto:gnu...@li...
> [6] https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: Hagen W. <ha...@kk...> - 2010-10-14 10:00:00
|
On Thu, 14 Oct 2010 03:25:05 -0500, Jon <dev...@gm...> wrote:
> BTW, is it possible to modify the script to output the selected points into
> an output file given a specific format?
Just add this two lines after the "label_number = label_number+1;\"
line in the label_loop.gnu file:
cmd = sprintf("echo \"set label '$0' at %.2f,%.2f textcolor 1\" >>
outfile.txt",MOUSE_X,MOUSE_Y);\
system(cmd);\
Now your final chosen position is appended to the file "outfile.txt"
with the whole line necessary to create this label.
/Hagen
>
>
> On Wed, Oct 13, 2010 at 5:45 AM, Hagen Wierstorf
> <ha...@gn...>wrote:
>
>>
>>
>> On Sat, 2 Oct 2010 12:35:00 -0500, Jon <dev...@gm...> wrote:
>> > It seems locating an accurate position on a graph to put some label or
>> arrow
>> > on needs try and wrong many times if using graph or screen coordinate,
>> which
>> > is time-consuming.
>>
>> To find the right label position can be indeed very time-consuming if
>> you have a lot of labels to put in a graph. I have solved the problem
>> for my purposes by using an interactive way to get the right positions.
>> Have a look at http://www.gnuplotting.org/interactive-label-placing/ for
>> the basic functionality.
>> But I'm not sure if this is the right thing for you, because the
>> position is not given in screen coordinates.
>>
>> /Hagen
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today.
>> http://p.sf.net/sfu/beautyoftheweb
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
|