matplotlib / mplfinance

Financial Markets Data Visualization using Matplotlib
https://pypi.org/project/mplfinance/
Other
3.51k stars 612 forks source link

Line Gradients #223

Open PowerrNuller opened 4 years ago

PowerrNuller commented 4 years ago

Hello,

Any existing methods to plot lines with a color gradient associated with them? Any ideas on how to accomplish that?

DanielGoldfarb commented 3 years ago

Nothin built into mplfinance. You will have to do this using the underlying matplotlib methods that support gradients. Not sure what you are looking to do, but here is an example that may be what you are looking for: https://matplotlib.org/3.3.0/gallery/lines_bars_and_markers/multicolored_line.html