Re: [Plplot-devel] Labelling y-axis as percentage From: Hezekiah M. Carty - 2012-03-07 14:54 ```On Wed, Mar 7, 2012 at 5:28 AM, Richard Jackson 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. > > Thanks > Richard > Richard, The plslabelfunc function may be useful: http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.9/plslabelfunc.html 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, Hez ```

 [Plplot-devel] Labelling y-axis as percentage From: Richard Jackson - 2012-03-07 10:28 ```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. Thanks Richard ```
 Re: [Plplot-devel] Labelling y-axis as percentage From: Hezekiah M. Carty - 2012-03-07 14:54 ```On Wed, Mar 7, 2012 at 5:28 AM, Richard Jackson 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. > > Thanks > Richard > Richard, The plslabelfunc function may be useful: http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.9/plslabelfunc.html 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, Hez ```
 Re: [Plplot-devel] Labelling y-axis as percentage From: Richard Jackson - 2012-03-07 16:33 ```Thanks Hez, Just what I needed Richard -----Original Message----- From: hcarty@... [mailto:hcarty@...] On Behalf Of Hezekiah M. Carty Sent: 07 March 2012 14:31 To: Richard Jackson Cc: plplot-devel@... Subject: Re: [Plplot-devel] Labelling y-axis as percentage On Wed, Mar 7, 2012 at 5:28 AM, Richard Jackson 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. > > Thanks > Richard > Richard, The plslabelfunc function may be useful: http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.9/plslabelfunc.html 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, Hez ```