-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor plot and plot3d to use virtualfile_from_data (#990)
Added an additional `extra_arrays` parameter to the `virtualfile_from_data` function to accept optional numpy arrays from the plot and plot3d functions. * Just use virtualfile_from_matrix for non-datetime 2D numpy arrays More efficient to pass in whole 2D numpy array matrix as a virtualfile to GMT, and this fixes the segmentation fault crash on test_plot3d_matrix_color when the data was passed in via virtualfile_from_vectors instead. * Add docstring on extra_arrays parameter in virtualfile_from_data * Use virtualfile_from_matrix on int/uint/float types and add a test Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
- Loading branch information
Showing
4 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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