-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Builtin function for multicolor/colormapped line #14584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It would take much more than just a 'c' argument; one needs the colormap, the norm, and the values being mapped. Note also that the 'x' and 'y' coordinates of N points along the line require N-1 values for the colors of the line segments between the consecutive points. |
It is fine if that function is called from |
Functions in the matplotlib API should have a defined return object. |
matplotlib.pyplot.plot
should accept c
argument specifying a colormap for every point
This was already discussed in #6040; I would suggest folding the two discussions together. |
I'm closing this in favor of #6040. I don't think the discussion here to date adds anything new. |
Currently in order to make a multicolor curve one has to not to use
plot
but do its work manually himself: https://matplotlib.org/3.1.0/gallery/lines_bars_and_markers/multicolored_line.htmlIt is bad. I guess
plot
should acceptc
argument the same wayscatter
accepts it.The text was updated successfully, but these errors were encountered: