OffAxisProjectionPlot.
set_font
(*args, **kwargs)¶set the font and font properties
Parameters: | font_dict : dict A dict of keyword parameters to be passed to : :py:class:`matplotlib.font_manager.FontProperties`. : Possible keys include : * family - The font family. Can be serif, sans-serif, cursive, ‘fantasy’ or :
* style - The font style. Either normal, italic or oblique. : * color - A valid color string like ‘r’, ‘g’, ‘red’, ‘cobalt’, and :
* variant: Either normal or small-caps. : * size: Either an relative value of xx-small, x-small, small, medium, :
* stretch: A numeric value in the range 0-1000 or one of :
* weight: A numeric value in the range 0-1000 or one of ultralight, :
See the matplotlib font manager API documentation for more details. : http://matplotlib.org/api/font_manager_api.html : |
---|
Notes
Mathtext axis labels will only obey the size and color keyword.
Examples
This sets the font to be 24-pt, blue, sans-serif, italic, and bold-face.
>>> slc = SlicePlot(ds, 'x', 'Density')
>>> slc.set_font({'family':'sans-serif', 'style':'italic',
'weight':'bold', 'size':24, 'color':'blue'})