Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

multiple line(style,color,width) in make_addplot() #690

Open
Labels
questionFurther information is requested
@vinaychuri

Description

"https://github.com/matplotlib/mplfinance/blob/master/examples/addplot.ipynb" mentions about adding multiple columns to make_addplot() via a dataframe.
Ex: adding multiple lines for the (bbands,ADX,macd)

But the make_addplot() does not accept list of values for the linecolor,style,width etc.
Interestingly, the label keyword accepts list of lables

Since the function does accept multiple datasets, is it possible to color/style the lines in the same function call?
Ex:
mpl.make_addplot(
plot_df[["A","B" ,"C"]],
linestyle=["dashdot","dashed","dotted"],
width=[0.5,1,1.5],
panel=1,
color=["blue","green","black"],
label=["A","_" ,"C"],
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /