From: Daniel Welling [mailto:dantwell...@gmail.com] 
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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to