gimli
gimli copied to clipboard
Visualisation ax,cb = mgr.showResult() undersizes plot and oversizes colorbar, changing aspect not effective
You should better write how you achieved this result, I guess:
ax, cb = *show*() # e.g. pg.show(), mgr.showResult() etc.
ax.set_aspect(3.0)
which is indeed a bug, rather one of matplotlib (e.g. see https://stackoverflow.com/questions/63118710/how-to-set-matplotlib-colorbar-height-for-image-with-aspect-ratio-1)
If you don't care about the actual aspect, but want to fill the figure, you can use ax.set_aspect('auto')
, but if you want to use a specific aspect, the figure is ugly unless you adjust the cb aspect too (which is 'auto' by default) by, e.g., cb.ax.set_aspect(0.5)
.
We should better (re)include aspect
as a keyword argument in pg.show()
and change the aspect of the colour scale accordingly.