Hi,
Does anybody know how to set the y axis of the category plot be in percents? I mean to have the “%” symbol at the every tick – similarly to the plot attached?
Thanks a lot!
Does anybody know how to set the y axis of the category plot be in percents? I mean to have the “%” symbol at the every tick – similarly to the plot attached?
You need to set your ticks using user tick waves. One text wave holding the displayed text, a second numerical wave that assigns the tick locations.
E.g.
Set the data units of the first appended y wave, then check the "Units in Every Tick Label" checkbox (on the Tick Options tab).
You'll need to remove the default axis label's treatment of the units; I just entered a space for the axis label which overrides the default of Label left "%" in this case.
Here's my example:
Macro TestData()Make/O/N=10 data=(p+1)*5/1.75SetScale d 0,0,"%", data
Make/O/T/N=10 categories= "Category "+num2istr(p+1)
Graph0()EndWindow Graph0() : GraphPauseUpdate; Silent1// building window...Display/W=(11.25,61.25,405.75,403.25) data vs categories
ModifyGraph tkLblRot(bottom)=90ModifyGraph linTkLabel(left)=1Label left " "EndMacro
You need to set your ticks using user tick waves. One text wave holding the displayed text, a second numerical wave that assigns the tick locations.
E.g.
A
September 15, 2011 at 05:19 am - Permalink
You'll need to remove the default axis label's treatment of the units; I just entered a space for the axis label which overrides the default of Label left "%" in this case.
Here's my example:
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
September 15, 2011 at 12:04 pm - Permalink