/usr/local/lib64/python3.6/site-packages/pandas/plotting/_matplotlib
NameSizeModeActions
__pycache__/-0755rm
boxplot.py139070644editdlrm
compat.py6560644editdlrm
converter.py351420644editdlrm
core.py515530644editdlrm
hist.py117260644editdlrm
misc.py123420644editdlrm
style.py34580644editdlrm
timeseries.py96620644editdlrm
tools.py122390644editdlrm
__init__.py20020644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pandas/plotting/_matplotlib/__init__.py (2002B)
from typing import TYPE_CHECKING, Dict, Type from pandas.plotting._matplotlib.boxplot import ( BoxPlot, boxplot, boxplot_frame, boxplot_frame_groupby, ) from pandas.plotting._matplotlib.converter import deregister, register from pandas.plotting._matplotlib.core import ( AreaPlot, BarhPlot, BarPlot, HexBinPlot, LinePlot, PiePlot, ScatterPlot, ) from pandas.plotting._matplotlib.hist import HistPlot, KdePlot, hist_frame, hist_series from pandas.plotting._matplotlib.misc import ( andrews_curves, autocorrelation_plot, bootstrap_plot, lag_plot, parallel_coordinates, radviz, scatter_matrix, ) from pandas.plotting._matplotlib.tools import table if TYPE_CHECKING: from pandas.plotting._matplotlib.core import MPLPlot # noqa: F401 PLOT_CLASSES: Dict[str, Type["MPLPlot"]] = { "line": LinePlot, "bar": BarPlot, "barh": BarhPlot, "box": BoxPlot, "hist": HistPlot, "kde": KdePlot, "area": AreaPlot, "pie": PiePlot, "scatter": ScatterPlot, "hexbin": HexBinPlot, } def plot(data, kind, **kwargs): # Importing pyplot at the top of the file (before the converters are # registered) causes problems in matplotlib 2 (converters seem to not # work) import matplotlib.pyplot as plt if kwargs.pop("reuse_plot", False): ax = kwargs.get("ax") if ax is None and len(plt.get_fignums()) > 0: with plt.rc_context(): ax = plt.gca() kwargs["ax"] = getattr(ax, "left_ax", ax) plot_obj = PLOT_CLASSES[kind](data, **kwargs) plot_obj.generate() plot_obj.draw() return plot_obj.result __all__ = [ "plot", "hist_series", "hist_frame", "boxplot", "boxplot_frame", "boxplot_frame_groupby", "table", "andrews_curves", "autocorrelation_plot", "bootstrap_plot", "lag_plot", "parallel_coordinates", "radviz", "scatter_matrix", "register", "deregister", ]