Skip to main content

plot

Plot data from a dataset

Source Code: [link]

openbb.forecast.plot(data: pd.DataFrame, columns: List[str], export: str = "", sheet_name: str = None, external_axes: Optional[List[axes]] = None)

Parameters​

NameTypeDescriptionDefaultOptional
datapd.DataFrameThe dataframe to plotNoneFalse
columnsList[str]The columns to showNoneFalse
sheet_namestrOptionally specify the name of the sheet the data is exported to.NoneTrue
exportstrFormat to export imageTrue
external_axesOptional[List[plt.axes]]External axes to plot onNoneTrue

Returns​

This function does not return anything