scieee AI-readable full text Open interactive document viewer

Quality diagrams with PyCirkuit

Mas Casals, Orestes Miquel

Full text

Quality diagrams with PyCirkuit Orestes Mas ([email protected]) Polytechnic University of Catalonia 2nd February 2020 FOSDEM20 , Quality diagrams with PyCirkuit Orestes Mas ([email protected]) Polytechnic University of Catalonia 2nd February 2020 FOSDEM20 , FOSDEM20 , The problem I need to draw circuits and diagrams! Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , The problem I need to draw circuits and diagrams! Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , The problem I need to draw circuits and diagrams! Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , The problem I need to draw circuits and diagrams! Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Why PyCirkuit? Requirements we have ▶Beautiful (publishing quality) ▶Large library of predefined symbols ▶Uniform style (don’t mix libraries) ▶Parametrizable symbols ▶Consistent typography: 𝑅𝑏,𝑣𝛾,𝑖2,𝛽𝑖𝑏 ▶Free formats, tools and systems 𝑅𝑒 𝛽𝑖𝑏 − 𝑣𝑥 + 𝑅𝑐 − + 𝑣𝛾 𝑅𝑏 𝑖𝑏 +𝑉𝑐𝑐 𝑖1𝑖2 Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Why PyCirkuit? Requirements we have ▶Beautiful (publishing quality) ▶Large library of predefined symbols ▶Uniform style (don’t mix libraries) ▶Parametrizable symbols ▶Consistent typography: 𝑅𝑏,𝑣𝛾,𝑖2,𝛽𝑖𝑏 ▶Free formats, tools and systems 𝑅𝑒 𝛽𝑖𝑏 − 𝑣𝑥 + 𝑅𝑐 − + 𝑣𝛾 𝑅𝑏 𝑖𝑏 +𝑉𝑐𝑐 𝑖1𝑖2 Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Chosen solution Insert graphic commands into a L A T EX document \begin{tikzpicture} \draw[step=0.25,color=blue!20,very thin] (-1.8,-1.6) grid (1.8,1.6); \foreach \ang in {0,30,...,330}{ \draw[color=red] (0,0) to[R, -*] (\ang:1.1); \node at (\ang:1.35) {\tiny$e^{j\ang^\circ}$}; } \end{tikzpicture} 𝑒𝑗0∘ 𝑒𝑗30∘ 𝑒𝑗60∘ 𝑒𝑗90∘ 𝑒𝑗120∘ 𝑒𝑗150∘ 𝑒𝑗180∘ 𝑒𝑗210∘ 𝑒𝑗240∘ 𝑒𝑗270∘𝑒𝑗300∘ 𝑒𝑗330∘ L A T EX+ TikZ ! � Perfect text/graphics integration. �Programmability & flexibility �Mathematical formulae pose no problems �Good circuit library (circuitikz) �Vector graphics Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , PyCirkuit Installation ▶On Debian Testing (Bullseye) is straightforward: apt-get install pycirkuit ▶From PyPI (recommended for MacOs/Windows) pip install pycirkuit ▶From GitHub pip install git+https://github.com/orestesmas/pycirkuit.git Outside Debian you must install some PyCirkuit dependencies by hand. See README file on GitHub project page. Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Demonstrations FOSDEM20 , Demo Graphical User Interface Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Demo Command-Line Interface Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Future work What’s planned? Primary goals ▶Documentation and code cleaning ▶Supporting/improving other input and output formats ▶Improve the editor Secondary goals ▶Allow simultaneous drawings on GUI ▶Configurable workflows. Plugin-based architecture? ▶Become a KDE project? (KDE - Python bindings!) Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Relevant links Main ▶GitHub repo: https://github.com/orestesmas/pycirkuit ▶PyPI repo: https://pypi.org/project/pycirkuit/ Other ▶PIC language: http://plan9.bell-labs.com/10thEdMan/pic.pdf ▶PIC tutorial: http://floppsie.comp.glam.ac.uk/Glamorgan/gaius/web/pic.html ▶Dpic site: https://ece.uwaterloo.ca/~aplevich/dpic/ ▶Circuit Macros: https://ece.uwaterloo.ca/~aplevich/Circuit_macros/ Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 FOSDEM20 , Acknowledgements ▶Donald Knuth & Leslie Lamport: For giving us T EX and L A T EX ▶Till Tantau: Author of TikZ (and Beamer too) ▶Dwight Aplevich: Circuit Macros and Dpic author ▶Matteo Agostinelli: “cirkuit” application ▶Aniol Marti & Àlex Muntada: Debian packages for dpic, circuit-macros and pycirkuit ▶...and the free software community for the contributions to these projects! Orestes Mas (or[email protected]) - UPC Quality diagrams with PyCirkuit 2nd February 2020 Thank you!