[LON-CAPA-users] Different labels in gnuplot

Todd Ruskell lon-capa-users@mail.lon-capa.org
Fri, 08 Feb 2008 14:09:30 -0700


I'll be helpful now and for completeness explain the work-around I just
came up with in the hopes that others might find it useful.  If you
really need tick marks this won't work for you, but for my bar charts it
works quite well.

I set xtics to start and end in a range outside of my axes.
I then used label to place the desired text below the lower limit of my
axis, which puts it outside the frame, but exactly where I wanted the label.

Here's an example snippet:
  <axis xmin="0" ymax="75" color="x000000" ymin="0" xmax="5" />
  <label justify="center" xpos="1" rotate="0" ypos="-5">A</label>
  <xtics location="border" mirror="off" end="6" increment="1" start="6" />

Effectively places an "A" where the number "1" would have occurred on
the x axis.


Todd Ruskell wrote:
> Do the LON-CAPA hooks into gnuplot current support things like
> 
> set xtics ("April" 1, "May" 2, "June" 3, "July" 4)
> 
> So that axes can be labeled with something other than numbers?
> 
> Thanks,
> 
> Todd
> 

-- 
Dr. Todd Ruskell
Senior Lecturer, Department of Physics       Office:  Meyer Hall 326
Colorado School of Mines                     Phone: 303-384-2080
1523 Illinois Street                         Fax: 303-273-3919
Golden, CO 80401