Colorbar functionality mesh.plotImage not working for OcTree mesh
See original GitHub issueTransferred from simpeg/simpeg#782 by @sarahgarre
Hi, I have to change the default colorbar used by mesh.plotImage to prevent images from being counterintuitive for my application. However, the cb=‘colorbar_name’ option does not seem to have any effect. Is this a bug or am I doing something wrong?
`out = my_mesh.plotImage(sigma_wrong,clim=[0,6],ax=ax1,cb=‘jet’)
@fourndo I think you already identified the problem, no? The TreeMesh plotImage function does not have the dictionary for colorOpts. Is it possible to fix this somewhere soon?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
BUG Detector mesh plot doesn't play well when subplotting
The meshes plot in their correct position, but the colorbars are not placed correctly. Code for reproducing the...
Read more >radmc3dPy 0.30.2 documentation
Function to plot an axis-aligned 2D slice of the variables in the model. Any additional keyword argument above the listed ones will be...
Read more >r - plotly adding colorbar to mesh3d without using intensity ...
I am trying to combine a scatter3d with visible="legendonly" with the mesh3d, so achieve this. But when the mesh is plotted, the legend...
Read more >https://docs.simpeg.xyz/_downloads/c5f801d4a1f0bf0...
The inverse problem uses the :class:'SimPEG.regularization.Sparse' that """ from discretize import TreeMesh from SimPEG import ( data, data_misfit, ...
Read more >2.5D DC Resistivity Least-Squares Inversion — SimPEG 0.14.2 ...
Generating a mesh based on survey geometry. Including surface topography. Defining the inverse problem (data misfit, regularization, directives).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That screenshot is from an older version of discretize. The relevant line changed in 0.4.1.
https://github.com/simpeg/discretize/blob/75f50681c3c58b4b1e1c647d6664492ba0aee2b3/discretize/tree_ext.pyx#L3022
In push https://github.com/simpeg/discretize/commit/384397f8c3b36d31f9bd147950c97cf36223a608
ok, after updating discretize independently from SimPEG and restarting my Jupyter kernel, I managed to change the colorbar using
pcolorOpts={'cmap':'hsv'}