-
Notifications
You must be signed in to change notification settings - Fork 229
The color parameter of plot and plot3d methods can be 1d array #1075
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
If I understand it correctly, we only need to update the docstrings to mention that |
I think so. May better to add an additional note (
Because we raise Lines 207 to 211 in 1a2289a
Lines 214 to 218 in 1a2289a
|
Sounds good. Maybe also need to mention that |
I think so. See GMT plot:
@seisman |
@core-man This issue looks easy to fix. Do you want to work on it? |
So we don't want to leave it to new contributors? |
The description of the issue is so long that people may be lost about what they should do. You may either submit a quick fix or give more details about the expected changes. |
Description of the problem
We need to update the documentation for the
color
parameter in plot and plot3d becausecolor
can also be1d array
(originally posted in #1065 (comment)).See the description of the
color
parameter of plot:See the description of the
color
parameter of plot3d:However,
color
can also be a 1d array just like thesizes
parameter when we usex
/y
parameters for in theplot
andplot3d
methods. See the last example in Plotting data points. We can setcolor=data.depth_km
anddata.depth_km
is a 1d array.The text was updated successfully, but these errors were encountered: