MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/IPython/comments/ecd1go/stop_ticks_resizing_graphs_matplotlib/
r/IPython • u/Lazerhorse19 • Dec 18 '19
4 comments sorted by
2
How do I stop ticks resizing my graphs?
I would like both my graphs to be the same size. Can I shift them relative to the tick position?
This is driving me crazy! Would really appreciate any help!
Try setting up the two axis with fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True).
fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True)
1 u/jmmcd Dec 18 '19 This will work for two. But I often generate a few hundred at a time (to later choose which I'll include in the paper). So i need them to be consistent.
1
This will work for two. But I often generate a few hundred at a time (to later choose which I'll include in the paper). So i need them to be consistent.
Stackoverflow is a better setting for these questions. And this is not ipython-specific.
2
u/Lazerhorse19 Dec 18 '19
How do I stop ticks resizing my graphs?
I would like both my graphs to be the same size. Can I shift them relative to the tick position?
This is driving me crazy! Would really appreciate any help!
2
u/pieIX Dec 18 '19
Try setting up the two axis with
fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True).1
u/jmmcd Dec 18 '19
Stackoverflow is a better setting for these questions. And this is not ipython-specific.