Skip to content

Refactor visualization module #469

Description

@matulni

Graphix module visualization.py is currently very convoluted and does not exploit the new flow API.
Among other issues, the flow computation and plot generation logic are largely intertwined in method Pattern.draw.

Note:

  • When a pattern has flow, Pattern.draw plots the pattern's flow + (optionally) Clifford commands.
  • When a pattern does not have flow Pattern.draw plots the pattern's XZ-corrections + (optionally) Clifford commands.

I propose to implement new draw methods for Flow and XZCorrections objects and call them from Pattern.draw where appropriate.
To be discussed how to allow for Clifford commands plotting.

Related: #439, #444

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions