Skip to content

A question about plot subplots of network #2766

Answered by jgostick
likeduck asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @likeduck
It so happens that I have been playing with matplotlib a lot lately. I have found this really helps:

h = op.visualization.plot_connection(...)
h = op.visualization.plot_coordinates(..., ax=h)

fig, ax = plt.gcf(), plt.gca()
< manipulate axes here >

This makes make things that our ax argument is not properly named since it's neigther and axis or a figure. Anyway, hopefully this helps. Once you have the ax and fig handles, you should be able to do whatever you like.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@likeduck
Comment options

@jgostick
Comment options

Answer selected by likeduck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants