wbe.show - plot only colorbar?

3 views
Skip to first unread message

Carlos Henrique Grohmann

unread,
May 13, 2025, 7:08:57 AMMay 13
to WhiteboxTools
Hi there

I'm preparing a figure with subplots, in a 2x3 configuration. If I plot all rasters without colorbars, all plots have the same size, as intended. 
I'm using the "constrained_layout=True" option to get better spacing.
But the rasters share the same colorscale, and if I plot the colorbar only for the last one in the row, the spacing gets different between the plots (horizontally).
So I thought about adding another subplot at the end of the row and plotting *only* the colorscale. This seems to be possible based on matplotlib examples, but I'm not sure how to do this with the wbe.show() function. 
So, can I do this? plot *only* the colorbar in a subplot?
Thanks
Reply all
Reply to author
Forward
0 new messages