Allow passing an array as intensity for plot3d#1109
Merged
seisman merged 8 commits intoGenericMappingTools:masterfrom Mar 24, 2021
Merged
Allow passing an array as intensity for plot3d#1109seisman merged 8 commits intoGenericMappingTools:masterfrom
seisman merged 8 commits intoGenericMappingTools:masterfrom
Conversation
seisman
reviewed
Mar 23, 2021
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
seisman
reviewed
Mar 23, 2021
seisman
reviewed
Mar 23, 2021
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
seisman
approved these changes
Mar 23, 2021
seisman
reviewed
Mar 24, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
Currently, we can have two ways to specify an intensity/intensities using the plot3d method.
intensity=0.5, which works for bothx/y/zanddatainput. This is similar to-I0.5in the GMT command line.intensity=True, and read intensities from an input file or from a 2D array, which is only for thedataparameter. This is similar to-Iin the GMT command line.So, when we want to change the intensities for different points, we can only use the
dataparameter now. This PR tries to pass an array tointensityso that we can set different intensities when we usex/y/zas point input. This way will not work fordatainput.Related to #891
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