Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return axis for embedding into other plots #1

Open
rlmcclure opened this issue Nov 22, 2024 · 0 comments
Open

return axis for embedding into other plots #1

rlmcclure opened this issue Nov 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rlmcclure
Copy link

Hey!
It would be great if we can add a parameter ( rtax=False,) to each of the plotters
regardless of if fig and ax are provided you can then have it return the axes and figure to use in a broader figure
if axes is None: if orientation.startswith('v'): fig, axes = plt.subplots(2,1, sharex=True, **kwargsFig) plt.subplots_adjust(hspace=0.) axes[0].set_ylim(-0.1,1.1) axes[0].yaxis.set_major_formatter(FormatStrFormatter('%.1f')) axes[1].set_ylim(-0.02,utils.getMaxC()) returnAx = True else: fig, axes = plt.subplots(1,2,**kwargsFig) plt.subplots_adjust(wspace=0.35) axes[0].set_ylim(0,1.0) axes[1].set_ylim(0,0.5) returnAx = True else: if rtax: returnAx = True else: returnAx = False

@soleyhyman soleyhyman added the enhancement New feature or request label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants