| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
I assume you didn't intend to leave this print statement in.
Sorry, something went wrong.
There was a problem hiding this comment.
That is now fixed with 02fbdbc. Thanks.
Sorry, something went wrong.
--- When pyplot.colorbar is called (w/ cax=None), it modifies the position of the parent axes and creates a new axes (cax) for a colorbar. However, issues can arise if the parent axes is an instance of Subplot because cax is created as an instance of Axes. This patch introduces a new keyword parameter "use_gridspec". If True (default is False) and if the parent axes is an instance of Subplot, cax is created also as an instance of Subplot. This patch is partly motivated to support tight_layout. Since cax is a subplot, tight_layout works.
| Back | FazBrowse Home | New Git URL |
When pyplot.colorbar is called (w/ cax=None), it modifies the position of the parent axes and creates a new axes (cax) for a colorbar. However, issues can arise if the parent axes is an instance of Subplot because cax is created as an instance of Axes.
This patch introduces a new keyword parameter "use_gridspec". If True (default is False) and if the parent axes is an instance of Subplot, cax is created also as an instance of Subplot.
This patch is partly motivated to support tight_layout. Since cax is a subplot, tight_layout works.