agepy.ageplot.use
- use(styles)
Function calling
plt.style.use()for easier access to the custom AGE matplotlib style sheets.- Parameters:
- styles: str or list of string
Styles to be loaded using
plt.style.use(). Available styles can be viewed by callingageplot.age_stylesandageplot.mpl_styles.
Warning
Compatibility between styles is not guaranteed.
Notes
All style rcParams are reset to the matplotlib default before loading the specified styles.
Examples
How to use the AGE style in conjunction with a style setting the figuresize, fontsizes and linewidths:
>>> import matplotlib.pyplot as plt >>> from agepy import ageplot >>> ageplot.use(["age", "pccp"]) >>> plt.plot([1, 2, 3], [4, 5, 6])