Thu, 05/16/2013 - 11:18 pm
I would like to make a plot with x-axis labels that contain greek letters (for example the labels would be δ-methyl, β-ethyl, and so on). I have tried to do this via the following method: create the plot with two numerical waves (the x=axis is sort of dummy wave with values of 1, 2, 3, 4,.....), create a text wave in a table that contains the desired x-axis labels, and in the plot select the "user ticks from waves" to link the labels to the data points. I am stuck at this point, however because I do not know how to change the font of part of text in a text wave (or if it is even possible to change the font of a text wave without changing the the default font setting). Is there a solution to this problem or a different way to obtain the desired plot?
The font is not a property of the wave. It is a property of the markers on a trace in a graph of a property of a column in a table.
Here is an example:
Display test
Make/T textWave = {"A", "B", "C", "D", "E"}
ModifyGraph mode=4,textMarker(test)={textWave,"Symbol",0,0,5,0.00,0.00}
ModifyGraph msize=5
// The rest is not really needed in order to create the graph
Edit test, textWave
ModifyTable font(textWave)="Symbol"
For the relevant help execute:
DisplayHelpTopic "Modifying Column Properties"
May 17, 2013 at 08:09 am - Permalink
As far as I can tell, the elements of the text wave with the tick labels behave like annotations.
e.g.
make/o/t ticklabel = {"\F'symbol'a\F]0-methyl", "\F'symbol'b\F]0-methyl", "\F'symbol'c\F]0-methyl", "\F'symbol'd\F]0-methyl"}
display data
ModifyGraph userticks(bottom)={tickpos,ticklabel}
- Fabrizio
May 17, 2013 at 09:39 am - Permalink
Thanks for the help, this worked well.
May 17, 2013 at 10:57 am - Permalink