Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1232 > unrolled thread

passing an axis range parameter to set label position

Started byTonyG <tgozdz@gmail.com>
First post2012-06-29 14:28 -0700
Last post2012-06-30 08:17 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  passing an axis range parameter to set label position TonyG <tgozdz@gmail.com> - 2012-06-29 14:28 -0700
    Re: passing an axis range parameter to set label position sfeam <sfeam@users.sourceforge.net> - 2012-06-29 17:03 -0700
      Re: passing an axis range parameter to set label position TonyG <tgozdz@gmail.com> - 2012-06-30 08:17 -0700

#1232 — passing an axis range parameter to set label position

FromTonyG <tgozdz@gmail.com>
Date2012-06-29 14:28 -0700
Subjectpassing an axis range parameter to set label position
Message-ID<3f32b988-a9be-43c1-9324-f992dc8407de@googlegroups.com>
I'd like to use the max value of yrange, Y, defined by my data set to calculate the label position in the expression 'set label 1 sprintf("b = %3.3f", b) at x,Y'.  Is there a way to pass the max(y) value to Y?

If it's not easily done, can I define the label position as a relative position in the plot window, such as 10% of the total height and 80% of the total width? 

[toc] | [next] | [standalone]


#1233

Fromsfeam <sfeam@users.sourceforge.net>
Date2012-06-29 17:03 -0700
Message-ID<jslfoi$l29$1@dont-email.me>
In reply to#1232
TonyG wrote:

> I'd like to use the max value of yrange, Y, defined by my data set to
> calculate the label position in the expression 'set label 1 sprintf("b =
> %3.3f", b) at x,Y'.  Is there a way to pass the max(y) value to Y?

  stats "dataset" using 2
  set label 1 at x, STATS_max
  plot "dataset" using 1:2

> If it's not easily done, can I define the label position as a relative
> position in the plot window, such as 10% of the total height and 80% of
> the total width?

  set label 1 at screen 0.8, screen 0.1

[toc] | [prev] | [next] | [standalone]


#1234

FromTonyG <tgozdz@gmail.com>
Date2012-06-30 08:17 -0700
Message-ID<9fd077e3-bb7d-429d-b7b6-1a0373859b1a@googlegroups.com>
In reply to#1233
Wow!  Thank you.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web