
Chapter II-12 — Graphs
II-277
Create the waves for labelling the axes:
Make/N=5 TickPositions
Make/N=5/T TickLabels
Assuming that Tm is 450 degrees and that you have determined that tick marks at 20, 30, 50, 100, and 400
degrees would look good, you would enter these numbers in the text wave, TickLabels. At this point, a con-
venient way to enter the tick positions in the numeric wave, TickPositions is a wave assignment that
embodies the relationship you think is appropriate:
TickPositions = 450/str2num(TickLabels)
Note that the str2num function was used to interpret the text in the label wave as numeric data. This only
works, of course, if the text includes only numbers.
Finally, double-click the bottom axis to bring up the Modify Axis dialog, select the Auto/Man Ticks tab and
select User Ticks from Waves. Choose the TickPositions and TickLabels waves:
The result is this graph:
Note that you can add other text to the labels, including special marks. For instance:
Finally, you can add a column to the text wave and add minor, subminor and emphasized ticks by entering
appropriate keywords in the other column. To add a column to a wave, select Redimension Waves from the
Data menu, select your text wave in the list and click the yellow arrow. Then change the number of columns
from 0 to 2 (or more).
This extra column must have the column label ‘Tick Type’. For instance:
TickLabels.d TickPositions
20 degrees 22.5
30 15
50 9
100 4.5
400 1.125
1.0
0.8
0.6
0.4
20 degrees
3050
100
Commenti su questo manuale