[LON-CAPA-users] Different labels in gnuplot

Felicia Berryman lon-capa-users@mail.lon-capa.org
Thu, 14 Feb 2008 16:16:30 -0500

Hi Todd,

I'm glad you found a workaround.  What would be best would be to support 
customized xtics.  Not that long ago, someone wanted something similar 
to the example at Listing 3 at:
I chatted with a former student employee of ours who had an interest in 
expanding GNUplot and he was interested in this enhancement.  There has 
clearly been more than enough demand for this feature to at least create 
an enhancement request for it.  Check out 

Feel free to add your comments to this request or email your comments to 
me and I'll add them for you.


Todd Ruskell wrote:
> 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

Felicia Berryman
LON-CAPA Support Coordinator
Michigan State University
Phone:  (517)432-9866
Technical Support Available at:
    http://www.loncapa.msu.edu - MSU Users
    http://www.help.lon-capa.org - General