Name
set_x_label_font, set_y_label_font, set_x_axis_font, set_y_axis_font — set fonts for graph elements
Synopsis
GIFgraph::set_x_label_font(fontname
) GIFgraph::set_y_label_font(fontname
) GIFgraph::set_x_axis_font(fontname
) GIFgraph::set_y_axis_font(fontname
)
These
methods may
only be used on graphs with axes (any graph but a pie chart). They
allow you to set the font used to label the x and y axes and the font
that is used to label the individual values on each axis. Valid
fontnames are gdSmallFont
,
gdLargeFont
, gdMediumBoldFont
,
gdTinyFont
, and gdGiantFont
.
The default font for the labels is gdSmallFont
and
for the axis values it is gdTinyFont
. Note that in
order to use these fonts you must import the GD module first with the
command use GD
.
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.