question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unify style across circuit visualizers

See original GitHub issue

The circuit visualizers are currently configurable via some kwargs to the circuit.draw() function, but also the mpl drawer accepts a style dict. This request is to unify the interface so that the important ones are accessed via the kwargs. The mpl style should probably just be trimmed down to some coloring schemes.

Here’s a rundown of the status of each:

  • ‘cregbundle’: this is a useful option that is only available via the mpl style, and I’d like it to be available in all via a kwarg in draw(). PR #4274

  • ‘line_length’ kwarg: this currently only works for text. The mpl accepts a ‘fold’ key in its style. These should be consolidated into a fold kwarg (i think fold is better than line_length). PR #3108

  • ‘scale’ kwarg: works well for mpl and latex. Does not work for text, which is probably expected. But docstring should reflect that. PR #4274

  • ~‘filename’ kwarg: file saving does not work for text. It should.~ Could not reproduce.

  • ‘plot_barriers’ kwarg: this works well. The mpl style key ‘plotbarriers’ is redundant and should be removed. PR #3105

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
maxKenngottcommented, Jul 20, 2019

I’d like to give this one a shot if possible.

0reactions
1ucian0commented, Sep 19, 2019

I used a flight to attack some of them. Let me know what’s on your plate @maxKenngott !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Network dynamics visualizer? - Brian simulator - Discourse
Hi, Has anyone made a visualizer, using this as a backend, that shows the network and states of the nodes over time? thanks...
Read more >
Visualization and Juypter Tools - GitHub
Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and algorithms.
Read more >
Simulation and Visualization of Fields and ... - DSpace@MIT
This thesis develops a method to simulate and visualize the fields and energy flows in electric circuits, using a simplified physical model based...
Read more >
CircuiTikZ 1.6.0 - manual - TeXDoc
can be divided in two main categories: the ones that are bipoles and are placed along a path (also known as to-style component, ......
Read more >
ABC: A Simple System for Sequential Synthesis and Verification
The latches are optimally shared across the fanout stems when the circuit is transformed from the sequential AIG into a logic network. The ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found