question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Colorbar functionality mesh.plotImage not working for OcTree mesh

See original GitHub issue

Transferred 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
sarahgarrecommented, May 28, 2019

ok, after updating discretize independently from SimPEG and restarting my Jupyter kernel, I managed to change the colorbar using pcolorOpts={'cmap':'hsv'}

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found