Return plots from different functions and replot as subplots
See original GitHub issueHi @marcomusy
I’ve two plots generated from different functions funa
and funb
.
def funa():
....
plt1 = plt.show()
def funb():
....
plt2 = plt.show()
plt1 = funa()
plt2 = funb()
I would like to plot plt1 and plt2 in a single figure as subplots. Could you please give some hints on how to do this? Can I do the following?
...
plt.show(plt1, at=0)
plt.show(plt2, at=1)
Thanks so much
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Using plots returned from functions as subplots in Python
In my code I have two functions that have more than one output each one. Those functions give as return, for example, the...
Read more >17. Creating Subplots in Matplotlib | Numerical Programming
This function returns a figure and an Axes object or an array of Axes ... with two subplots on top of each other...
Read more >Matplotlib Subplots - How to create multiple plots in same ...
1. Basic Overview · 2. Create a plot inside another plot using axes() · 3. Explicitly create the figure and then do add_axes()...
Read more >Creating multiple subplots using plt.subplots - Matplotlib
A figure with just one subplot subplots() without arguments returns a Figure and a single Axes . This is actually the simplest and...
Read more >Matplotlib - Subplots() Function - Tutorialspoint
The function returns a figure object and a tuple containing axes objects equal to nrows*ncols. Each axes object is accessible by its index....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool! one extra thing you can do is to set a larger window with
Plotter(size=())
, depending on the physical size of your screen…Hi @marcomusy ,
I noticed when
solved the issues reported above 😃