Replies: 3 comments 2 replies
-
|
I wonder if the huge margins are Cartopy-related. I know in the past I've found multi-panel plots with Cartopy to be tricky to get to look how I want. |
Beta Was this translation helpful? Give feedback.
-
|
I often play with the figure size to adjust margins/spacing on the cheap. Also when you go to save the figure using the box_inches='tight' does a nice job of reducing the white space on the outside edge of the figure. |
Beta Was this translation helpful? Give feedback.
-
|
I ensure that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking of requesting an example be added that uses the declarative interface to make a four-panel plot using all the "tricks" available to make the plot look good with the minimum possible code. One such trick I have figured out is using
copy()to eliminate code repetition, but I haven't figured out how to eliminate the huge margins in the resulting plot. It may be that this is a missing feature inPanelContainer.show()(maybe have it callplt.tight_layout()?), or maybe I just haven't figured out the trick yet. So this is a multi-stage discussion:copytrick, the elimination of giant margins, and any other improvements I haven't thought of.Here's where I'm at so far:
I like the reduction in code repetition; I don't like the huge margins.
Beta Was this translation helpful? Give feedback.
All reactions