mercredi 4 mars 2015

How to put random figures into a subplot

I'm having some trouble by putting two random figures into a subplot.


I am dealing with two lines where each of them are calling one definition. The definitions are making two graphs of europe. As you can se in the code below I want them to be placed next to each other. When doing it this way the two lines of code does not respond to the subplot and they are placed just beneath each other. How can I place them next to each other?



fig=plt.figure(figsize(6,6))
ax=fig.add_subplot(1,2,1)
magfig.plot_europe_map(Phi_PC, ax=plt.subplot(frameon=False))
ax=fig.add_subplot(1,2,2)
magfig.make_europe_graph(lambd, 0, F_PC, Phi_PC, ".pdf", "./results/EUmap" )


Regards Smail





Aucun commentaire:

Enregistrer un commentaire