|
From: Stan W. <sta...@nr...> - 2012-09-17 17:05:54
|
From: Daniel Welling [mailto:dan...@gm...] Sent: Thursday, September 13, 2012 16:23 Greetings, all. I have an issue: I have several axes stacked in a column with a common time vector on each x-axis. Each plot is a contour, so overplotting is not an option. In a perfect world, I want the following: 1) The subplots are tightly spaced such that with ax.grid() activated, the grid lines appear continuous. This makes comparing simultaneous characteristics between subplots very easy. 2) The subplots are linked via the "sharex" keyword so I can move them all in unison. 3) Only the bottommost subplot has x tick labels; on other plots, the long time-formatted labels stick out of the left and right of the plots. [...] For #3, there is a convenience method of subplots, label_outer [1], that sets the visibility of the tick labels (as Francesco described), making them visible in the bottom row and invisible elsewhere (as in Sterling's code). Just iterate over all of your subplots and call the label_outer method on each one. [1] http://matplotlib.org/api/axes_api.html#matplotlib.axes.SubplotBase.label_oute r |