Skip to main content

line

Display line plot of data

Source Code: [link]

openbb.qa.line(data: pd.Series, title: str = "", log_y: bool = True, markers_lines: Optional[List[datetime.datetime]] = None, markers_scatter: Optional[List[datetime.datetime]] = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None)

Parameters

NameTypeDescriptionDefaultOptional
datapd.SeriesData to plotNoneFalse
titlestrTitle for plotTrue
log_yboolFlag for showing y on log scaleTrueTrue
markers_linesOptional[List[datetime]]List of dates to highlight using vertical linesNoneTrue
markers_scatterOptional[List[datetime]]List of dates to highlight using scatterNoneTrue
exportstrFormat to export dataTrue
external_axesOptional[List[plt.Axes]]External axes (1 axis is expected in the list), by default NoneNoneTrue

Returns

This function does not return anything


Examples

from openbb_terminal.sdk import openbb
df = openbb.stocks.load("AAPL")
openbb.qa.line(data=df["Adj Close"])