Using matplotlib, it seems the only time to set the sharex
or sharey
axis parameters are during sub_plot creation (add_subplot()
, subplot()
, subplots()
). For an axes
class there are methods for getting axis sharing (get_shared_x_axes()
, get_shared_y_axes()
), but no corresponding methods for setting sharing. Maybe this is an API oversight, or perhaps it did not fit architecturally.
Is there a way to change the shared axis parameter?
For those that ask why: I'm using a matrix of plots dynamically, and can control this using view limits, but it just seems like there could be an easier way, and turning sharing on/off and using autoscale would be it.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…