Uh oh!
There was an error while loading. Please reload this page.
Clarify that the "transparency" parameter in plot/plot3d/text can be 1d array - #1265
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 |
core-man
commented
May 19, 2021
I am wondering if we should add 1d array in the following pygmt/pygmt/helpers/decorators.py Lines 128 to 129 in 036e2b0 |
seisman
commented
May 19, 2021
In GMT CLI, only a few modules (e.g., plot, plot3d, text) support varying transparency. |
weiji14
left a comment
There was a problem hiding this comment.
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).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
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 |
weiji14
commented
May 20, 2021
Oh yes, forgot that varying transparency for text was added in #716. Could you please add it to the documentation for |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
core-man
commented
May 20, 2021
Done in |
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
weiji14
commented
May 20, 2021
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 <23487320+weiji14@users.noreply.github.com> Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Description of proposed changes
Fixes#1098
Reminders
make formatandmake checkto 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