Thanks Hez, Just what I needed Richard -----Original Message----- From: hca...@mulethief.com [mailto:hca...@mulethief.com] On Behalf Of Hezekiah M. Carty Sent: 07 March 2012 14:31 To: Richard Jackson Cc: plplot-devel@lists.sourceforge.net Subject: Re: [Plplot-devel] Labelling y-axis as percentage
On Wed, Mar 7, 2012 at 5:28 AM, Richard Jackson <rrjac...@googlemail.com> 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 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel