Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#690 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
matplotlib, python

Research direction

Start with the make_addplot() entry point and the examples/addplot.ipynb example mentioned in the issue. Inspect how multiple dataframe columns are handled and how color, linestyle, width, and label currently accept values. Done means one call can apply the corresponding style to each plotted column while preserving existing scalar and label behavior; validate it with the notebook example.

Written by the indexing model from the issue text.

Description

question

"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"],
)

Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from matplotlib/mplfinance

All issues in matplotlib/mplfinance

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.