Skip to content

subplots? #146

Open
Open

Description

@benslack19

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

Activity

  1. dfm commented on Feb 11, 2022

    @dfm
    Member

    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!

  2. nstarman commented on Aug 26, 2023

    @nstarman
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions