sewkokot / opsvis

OpenSeesPy postprocessing and plotting module
GNU General Public License v3.0
35 stars 21 forks source link

[Feature request] Return figure and axes objects for each plot function #19

Open firai opened 2 years ago

firai commented 2 years ago

Certain plot customizations are much more difficult or practically impossible without access to the figure (fig) and axis (ax) objects. Using matplotlib's gcf() and gca() is possible, but relying on these limits how opsvis output can be used within a larger context.

Can the fig and ax objects be returned with each of the plot functions? I understand that there may be a major rewrite that's about to be pushed; otherwise I would create a PR to return these objects.