Increasing font size in PGPLOT

The size of font used by PGPLOT for labels and other text on the plots can be changed using the PGSCH command, which takes one argument which is the relative height of the characters. If this argument is greater than one then to font size will be larger than default.

One potential pitfall is that you may find that some of the labelling text becomes large enough that it is truncated by the edge of the plotting area. The easy way to fix this is to call the PGVSTD command after the call to PGSCH. This command allows a sufficient margin for usual labelling, taking into account the current size of the font.

In Python I have:

blog comments powered by Disqus