-
Notifications
You must be signed in to change notification settings - Fork 224
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
plot and plot3d: Allow passing an array as symbol #1076
Comments
A bit of a side issue, but do you think we can make a generic |
I quickly checked the current source codes of those two methods in PyGMT, which are the same except that |
There are still many unimplemented and complicated features/options in plot and plot3d. I would prefer NOT to make the generic |
That's true. Actually, I think I found two bugs when I try to work on this issue for the |
For this issue, shall we create a new parameter called |
I'm not sure if we should reuse |
Sound great.
Great. I will try~ |
@core-man Thanks for your quick PR in #1117. Here are the possible ways to set symbols and sizes after your PR. I feel some of them are not intuitive to me.
Although we use
I believe most users would use
The |
We can use
That's true, but it seems that
Good suggestion. Will include in #1117. @seisman based on your comments, I think you are requesting that we should use |
Shall we support a string 1d-array for the
Fixed in |
Just following up on this. I think having 3 parameters (style/symbol/size) will get too confusing. If 'style' is not a good alias name for -S, perhaps we should deprecate it using |
Good idea: First, deprecate |
@seisman, considering that Lines 319 to 332 in 6c69fb6
The Line 369 in 6c69fb6
Maybe we could create a reusable function out of this somehow? |
Sounds a promising idea. |
Description of the desired feature
We can now use a 1d array for
sizes
andcolor
parameters, andintensity
can also accept a 1d array after #1065. Therefore, we may also support a 1d array assymbol
orsymbols
(originally posted in #1065 (comment)).The format of the input file of GMT
plot
(including both -S and -I):color
parameter in PyGMTsizes
parameter in PyGMT (I don't know why we add a "s")intensity
(the name may be updated) parameter in PyGMT (Allow passing an array as intensity for plot #1065 is working on it)The format of the input file of GMT
plot3d
(including both -S and -I):color
parameter in PyGMTsizes
parameter in PyGMT (I don't know why we add a "s")Therefore, we'd also like to support an array as
symbol
when we usex
/y
inplot
andx
/y
/z
inplot3d
.See an example with
x y z size intensity symbol
for the GMTplot
method.Are you willing to help implement and maintain this feature? Yes, but volunteers are welcome.
The text was updated successfully, but these errors were encountered: