[Tutor] Subplotting Figure Handles - Python Help

David Lowry-Duda david at lowryduda.com
Mon Jun 29 10:24:18 EDT 2020


Hello!

On Sun, Jun 28, 2020 at 11:18:54PM +0000, Lakshay Verma wrote:
> Hello,
> 
> How do I go about subplotting these figures? Because right now, I am 
> not able to subplot them and it's really frustrating because when I 
> save the figures to a pdf, I'm getting 20+ page pdfs whereas I would 
> like 5 pages whereby I can group plots that analyze similar data.

Without seeing your code, it's hard to give specific pointers. But I 
suspect you'll get far if you adjust the code in some of the matplotlib 
examples on the matplotlib site. In particular, I think this page

https://matplotlib.org/gallery/subplots_axes_and_figures/subplots_demo.html#sphx-glr-gallery-subplots-axes-and-figures-subplots-demo-py

will be of interest. A similar, but condensed, presentation is on 
StackOverflow at

https://stackoverflow.com/questions/31726643/how-do-i-get-multiple-subplots-in-matplotlib

> I'd be happy to discuss this over a video call so you can see the code 
> and get a better idea. Thanks!

This isn't something I'd be interested in. But I think if you distilled 
your question to a form where you could share the code on this list, it 
would raise the likelood both of getting any answer and an explicitly 
helpful answer.

Finally, in case you have other matplotlib-specific questions in the 
future, it may be helpful to post on the matplotlib-users mailing list

https://mail.python.org/mailman/listinfo/matplotlib-users

Good luck!

- DLD

-- 
David Lowry-Duda <david at lowryduda.com> <davidlowryduda.com>


More information about the Tutor mailing list