multiple line(style,color,width) in make_addplot()
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
- Domain
- data-visualization
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
"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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matplotlib/mplfinance
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
matplotlib/mplfinance#672 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
matplotlib/mplfinance#700 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
matplotlib/mplfinance#695 ·
-
question
Difficulty 3/5 1-2 days Newbie friendliness 25/100
matplotlib/mplfinance#691 · 1 comment ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 15/100
matplotlib/mplfinance#689 ·
All issues in matplotlib/mplfinance
Similar issues
-
agent-ready documentation needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
instance instance add
Difficulty 1/5 Under an hour Newbie friendliness 72/100
searxng/searx-instances#939 · 1 comment ·
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100