Formatting the Font
Format the font of the Cartesian graph by searching and navigating the documentation.
-
To change the font sizes of the vertical and horizontal axes, look for Font in
the integrated help. Select the Font (property) topic and
then select the GraphAxisTitle (object).
This shows the Usage locations.
-
Under the Property list for the .Font
property select FontFormat.
Note: The .Size property is a number. From the last two figures some of syntax for adjusting the font is already clear:
VerticalAxis.Title.Font
-
Navigate to the VerticalGraphAxis (object) and select
.VerticalAxis.
-
Click .VerticalAxis at Usage
locations.
Note: There can be more than one graph, therefore the graph forms part of the collection of CartesianGraphCollection.
-
Navigate to CartesianGraphCollection.
Note: CartesianGraphCollection reside under the Application.
-
The syntax to adjust the font for the titles of both axes is therefore as
follows.
my_graph.VerticalAxis.Title.Font.Size = 14 my_graph.HorizontalAxis.Title.Font.Size = 14
-
Similarly use the .Labels property to adjust the font size
for the labels using the following syntax.
my_graph.HorizontalAxis.Labels.Font.Size = 14 my_graph.VerticalAxis.Labels.Font.Size = 14