KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I plot to a specific axes in matplotlib? I created my own object which has its own plot method and takes standard args and kwargs to adjust line color, width, etc, I would also like to be able to plot to a specific axes too. I see there is an axes property that accepts an Axes object but no matter what it still only plots to the last created axes. Here is an example of what I want fig, ax = subplots(2, 1) s = my_object() t = my_object() s.plot(axes=ax[0]) t.plot(axes=ax[1])
Tags (comma-separated)
Save Edits
Cancel