https://github.com/allefeld/pytikz

A Python interface to TikZ

https://github.com/allefeld/pytikz

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

A Python interface to TikZ

Basic Info
  • Host: GitHub
  • Owner: allefeld
  • License: gpl-3.0
  • Language: Jupyter Notebook
  • Default Branch: master
  • Size: 2.54 MB
Statistics
  • Stars: 73
  • Watchers: 4
  • Forks: 11
  • Open Issues: 3
  • Releases: 0
Created almost 6 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

pytikz – A Python interface to TikZ

This package provides a way to create, compile, view, and save figures based on the LaTeX package TikZ & PGF. It makes the creation of TikZ figures easier when (part of) the underlying data is computed, and makes the preview and debugging of figures within a Jupyter notebook seamless.

Example

Python code adapted from the TikZ documentation:

coords = [(0, 0), (0, 2), (1, 3.25), (2, 2), (2, 0), (0, 2), (2, 2), (0, 0), (2, 0)] pic = Picture() pic.draw(line(coords), thick=True, rounded_corners='4pt') pic.write_image('nikolaus.pdf')

Installation

The distribution package is called pytikz and can be installed from this repository:

pip install git+https://github.com/allefeld/pytikz.git

Note that the import package is called tikz.

Getting started

A tutorial illustrating the use of pytikz is provided in the form of a Jupyter notebook pytikz.ipynb. It is best viewed through nbviewer.

Documentation

Module tikz.


This software is copyrighted © 2020 by Carsten Allefeld and released under the terms of the GNU General Public License, version 3 or later.

Owner

  • Name: Carsten Allefeld
  • Login: allefeld
  • Kind: user
  • Company: City, University of London

GitHub Events

Total
  • Issues event: 1
  • Watch event: 10
  • Issue comment event: 2
  • Fork event: 1
Last Year
  • Issues event: 1
  • Watch event: 10
  • Issue comment event: 2
  • Fork event: 1

Dependencies

setup.py pypi
  • PyMuPDF *
  • ipython *
  • numpy *