Navigation:  How do I ...? > Appearance >

Customizing the X and Y axis labels

 

Previous pageReturn to chapter overviewNext page

Sets the X/Y/Z axis label to string. Limited to 200 characters. For formatting codes (bold, italic, subscripts, colour, etc.) see the description of the DPlot TextFont macro command below.

 

The following example sets the X and Y labels for the currently active DPlot document.

 

Dummy=FNDplot_send_cmd("[XAxisLabel(""x axis label text"")]")

Dummy=FNDplot_send_cmd("[YAxisLabel(""y axis label text"")]")

 

 

The following code lines specifies the formatting for the X,Y and Z axis labels.

 

Dummy=FNDplot_send_cmd("[TextFont(4,11,600,0)]")

Dummy=FNDplot_send_cmd("[TextFont(5,11,600,0)]")

Dummy=FNDplot_send_cmd("[TextFont(8,11,600,0)]")

 

4 is the index for X  axis labels (5=Y axis, 8 = Z  axis), 11 is the size of the font, where 1 point = 1/72 inch. 600 is the weight (a number between 100 for "thin" and 900 for "heavy" or 0 for "don't care", in which case Windows picks the font weight). Normal text has a weight of 400, bold text has a weight of 700. Not all font weights are available for all possible fonts. Windows selects the closest weight available. 0 is the font style (1=Italic).

 

All parameters other than the index are optional. For example, the following sets the color of the first title line to red and leaves all other parameters at their current values:

Dummy=FNDplot_send_cmd("[TextFont(2,,,,255,0,0)]")