GithubHelp home page GithubHelp logo

anjiro / pytikz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allefeld/pytikz

0.0 0.0 0.0 2.6 MB

A Python interface to TikZ

License: GNU General Public License v3.0

Shell 0.15% Python 20.15% Mako 0.04% Jupyter Notebook 79.67%

pytikz's Introduction

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.

pytikz's People

Contributors

allefeld avatar sspickle avatar abdullahkhalids avatar soraxas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.