You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement grdview which "Creates 3-D perspective image or surface mesh from a grid". Basically a 3D version of 'grdimage` that was wrapped in #124. Below is an example of such a 3D plot:
The grdview function fits in with the rest of the Plotting modules and shouldn't be too hard to implement. I've created heaps of 3D perspective plots before for my thesis using GMT5 and definitely found the plot quality and features a lot nicer than matplotlib. This will be a great addition for people working with contours and DEM surfaces and brings PyGMT into the 3D realm!
Code-wise, I'll stick to using the earth_relief_grid for the unit tests. As for the aliases, I'm thinking of using 'perspective' for -p and 'zscaling' for -Jz (though unsure how to handle -JZ). -Q seems to be worth aliasing but I can't come up with a good name...
Are you willing to help implement and maintain this feature? Yes
The text was updated successfully, but these errors were encountered:
Initial commit for wrapping the grdview function raised at #328, to be implemented under base_plotting.py alongside the other mapping related stuff. Original GMT `grdview` documentation can be found at https://docs.generic-mapping-tools.org/latest/grdview.html.
Storing sample test cases under test_grdview.py. Current implementation takes in a reliefgrid either as a filename or xarray.DataArray. Aliased the 'required' arguments 'Jz' to 'zscale' and 'JZ' to 'zsize' (similar to GMT julia wrappper). Also aliased 'p' to 'perspective' (as is standard in upstream GMT) so that we can have some 3D test plots to compare against, instead of just some flat (birds-eye view) maps.
Wrapping the grdview function raised at #328, to be implemented under base_plotting.py. Original GMT `grdview` documentation can be found at https://docs.generic-mapping-tools.org/latest/grdview.html. Storing sample test cases under test_grdview.py.
Description of the desired feature
Implement
grdview
which "Creates 3-D perspective image or surface mesh from a grid". Basically a 3D version of 'grdimage` that was wrapped in #124. Below is an example of such a 3D plot:The
grdview
function fits in with the rest of the Plotting modules and shouldn't be too hard to implement. I've created heaps of 3D perspective plots before for my thesis using GMT5 and definitely found the plot quality and features a lot nicer than matplotlib. This will be a great addition for people working with contours and DEM surfaces and brings PyGMT into the 3D realm!Code-wise, I'll stick to using the
earth_relief_grid
for the unit tests. As for the aliases, I'm thinking of using 'perspective' for-p
and 'zscaling' for-Jz
(though unsure how to handle-JZ
).-Q
seems to be worth aliasing but I can't come up with a good name...Are you willing to help implement and maintain this feature? Yes
The text was updated successfully, but these errors were encountered: