Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#690 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
matplotlib, python

调研方向

从 make_addplot() 入口点以及 issue 中提到的 examples/addplot.ipynb 示例开始。检查如何处理多个 dataframe 列,以及 color、linestyle、width 和 label 当前如何接受值。完成的标准是:一次调用可以将相应的样式应用于每个绘制的列,同时保留现有的标量值和 label 行为;使用 notebook 示例对其进行验证。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Python
星标
4.4k
派生
678
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

matplotlib/mplfinance 的其他 Issue

查看 matplotlib/mplfinance 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。