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: Optional[str] = None, external_axes: bool = False)

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_axesboolWhether to return the figure object or not, by default FalseFalseTrue

Returns

This function does not return anything