Just what I needed
From: hcarty@... [mailto:hcarty@...] On Behalf Of Hezekiah M. Carty
Sent: 07 March 2012 14:31
To: Richard Jackson
Subject: Re: [Plplot-devel] Labelling y-axis as percentage
On Wed, Mar 7, 2012 at 5:28 AM, Richard Jackson <rrjacksn@...> wrote:
> Hi all,
> Is there any way of labelling the y-axis as percentage?
> EG, I have a ymin and ymax of -0.015 and +0.015 and I would like to see the
> y axis labelled from -1.5% to +1.5%. Of course I can easily do the scaling
> myself but I can't see how I could add the "%" symbol.
The plslabelfunc function may be useful:
In short, this allows you to provide PLplot with a function that will
convert the numeric value at a label location into a string of your
choosing. The first two pages of PLplot's standard example 19 use
this function to add N/S/E/W axis label suffixes to a map. A similar
approach would work for your case, both for scaling and adding %.
I hope this helps,