--- title: plot description: Learn how to harness the power of OpenBB's financial forecasting functions such as the plot and plot_chart to visualize data. These Python functions extract dataframes and accept options for export format and external plot axes. keywords: - plot data visualization - OpenBB finance - forecast - dataframe - export format - docusaurus tabs - optional axes --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; Plot data from a dataset Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L74)] ```python openbb.forecast.plot(data: pd.DataFrame, columns: List[str], export: str = "", external_axes: Optional[List[axes]] = None) ``` --- ## Parameters | Name | Type | Description | Default | Optional | | ---- | ---- | ----------- | ------- | -------- | | data | pd.DataFrame | The dataframe to plot | None | False | | columns | List[str] | The columns to show | None | False | | export | str | Format to export image | | True | | external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | --- ## Returns This function does not return anything --- Plot data from a dataset Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L74)] ```python openbb.forecast.plot_chart(data: pd.DataFrame, columns: List[str], export: str = "", external_axes: Optional[List[axes]] = None) ``` --- ## Parameters | Name | Type | Description | Default | Optional | | ---- | ---- | ----------- | ------- | -------- | | data | pd.DataFrame | The dataframe to plot | None | False | | columns | List[str] | The columns to show | None | False | | export | str | Format to export image | | True | | external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | --- ## Returns This function does not return anything ---