Loading...

verticapy.machine_learning.vertica.decomposition.PCA.get_plotting_lib#

PCA.get_plotting_lib(class_name: str | None = None, chart: PlottingBase | TableSample | Axes | mFigure | Highchart | Highstock | Figure | None = None, matplotlib_kwargs: dict | None = None, plotly_kwargs: dict | None = None, highchart_kwargs: dict | None = None, style_kwargs: dict | None = None) tuple[~typing.Literal[<module 'verticapy.plotting._highcharts' from '/usr/local/lib/python3.10/site-packages/verticapy/plotting/_highcharts/__init__.py'>, <module 'verticapy.plotting._matplotlib' from '/usr/local/lib/python3.10/site-packages/verticapy/plotting/_matplotlib/__init__.py'>, <module 'verticapy.plotting._plotly' from '/usr/local/lib/python3.10/site-packages/verticapy/plotting/_plotly/__init__.py'>], dict]#

Returns the first available library (Plotly, Matplotlib, or Highcharts) to draw a specific graphic. If the graphic is not available for a library, function tries the next plotting library. The style applied to the graphic corresponds to the input style. The final graphic is drawn using the input ‘chart’ object.