Stores pandas plotting options.
Allows for parameter aliasing so you can just use parameter names that are the same as the plot function parameters, but is stored in a canonical format that makes it easy to breakdown into groups later.
Examples
>>> np.random.seed(42)
>>> df = pd.DataFrame({'A': np.random.randn(10),
... 'B': np.random.randn(10)},
... index=pd.date_range("1/1/2000",
... freq='4MS', periods=10))
>>> with pd.plotting.plot_params.use("x_compat", True):
... _ = df["A"].plot(color="r")
... _ = df["B"].plot(color="g")
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.plotting.plot_params.html