Horizontal colorbar support for all relevant plot functions with colorbar#359
Merged
alhom merged 25 commits intofmihpc:masterfrom Dec 2, 2025
Merged
Horizontal colorbar support for all relevant plot functions with colorbar#359alhom merged 25 commits intofmihpc:masterfrom
alhom merged 25 commits intofmihpc:masterfrom
Conversation
Member
|
Please add example figure outputs for reference. |
Member
|
And please add testpackage lines where available (plot_colormap, _vdf) |
bringing branch up to date
Bring up to date with master
…lorbar to testpackage colormap
Member
|
Very good! Two more things:
|
This reverts commit c498980.
… given `axes`, lastly hid the axis on the given `axes` such that it doesnt show on the plot by default.
… although the ticks have some clipping issues and matplotlib is stupid
Member
|
Check the conflict, can be merged after that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added option for horizontal colorbar for all the plot functions with cbaxes kword, changes based on #237.
Currently changed:
Also adds colorbar calls to testpackage.
Example plot_vdf when cbaxes and axes are passed to it
Also added semi sensible default placements for horizontal colorbar if only
cb_horizontal=Trueis passed to these. Note that for vdf and vdfdiff this may not always look good as I believe the figure size comes from the data.vdf:

vdfdiff:

Here I reduced the number of ticks when plotting with horizontal bar, because matplotlib is giga annoying to work with and I could not easily a) make the ticks have decimal precision of just 1 b) widen the colorbar. This may only be an issue if the main plot is too narrow and it depends on the data I presume.
colormap:

colormap3dslice:

plot_neutral_sheet:

ionosphere:

Note that this is after the change in #363 , which is not included in this PR