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

subplots? #146

Open
benslack19 opened this issue Feb 3, 2022 · 2 comments
Open

subplots? #146

benslack19 opened this issue Feb 3, 2022 · 2 comments

Comments

@benslack19
Copy link

Hi, I'm looking to make multiple DAGs in one figure. Is there a way to do subplots?

@dfm
Copy link
Member

dfm commented Feb 11, 2022

Unfortunately this is not currently supported. It seems like it wouldn't be too hard to add, but I don't know of any plan to do it.

If you (or anyone else) are interested in looking into this, the issue is that reset_figure is called in pgm.render() which removes any previously defined figure:

daft/daft.py

Line 456 in 5d3d8c7

self._ctx.reset_figure()

We'd need to figure out how to remove that call to get this to work!

@nstarman
Copy link
Contributor

Rather than making a new figure, render could take an ax argument. If not provided it would make a new figure and axes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants