-
Notifications
You must be signed in to change notification settings - Fork 229
Clarify that the "transparency" parameter in plot/plot3d/text can be 1d array #1265
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
Conversation
I am going to add 1d array transparency test, so the following functions should be renamed to a general one. How about pygmt/pygmt/tests/test_plot.py Lines 94 to 98 in 036e2b0
pygmt/pygmt/tests/test_plot3d.py Lines 111 to 114 in 036e2b0
|
I am wondering if we should add 1d array in the following pygmt/pygmt/helpers/decorators.py Lines 128 to 129 in 036e2b0
|
In GMT CLI, only a few modules (e.g., plot, plot3d, text) support varying transparency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one tiny suggestion :)
In GMT CLI, only a few modules (e.g., plot, plot3d, text) support varying transparency.
Seems like we're missing the varying transparency feature for text
, maybe open an issue for this, and we can get someone to work on it (after #1121).
Co-authored-by: Wei Ji <[email protected]>
We have varying transparency feature for Lines 200 to 204 in 5125224
pygmt/pygmt/tests/test_text.py Lines 324 to 327 in 5125224
Or you mean improving the documentation for the Line 149 in 5125224
|
Oh yes, forgot that varying transparency for text was added in #716. Could you please add it to the documentation for |
Done in |
Co-authored-by: Wei Ji <[email protected]>
Yes, but that can be done in a separate Pull Request, let's keep this one focused on just the docstring (and unit test). I think @seisman is doing a bit of work on refactoring the P.S. The ubuntu-latest - Python 3.9 / NumPy 1.20 tests are failing due to an unrelated reason at #1278. I'll see if I can come up with a quick fix, if not, it should be fine to merge (as an admin) since the other tests are passing. |
…1d array (GenericMappingTools#1265) Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
Description of proposed changes
Fixes #1098
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version