Skip to content

Latest commit

 

History

History
104 lines (61 loc) · 3.29 KB

index.rst

File metadata and controls

104 lines (61 loc) · 3.29 KB

Welcome to tikzpy documentation!

Intro

Documentation of tikzpy. Build your TikZ drawings for latex with python. tikzpy is a python library that helps to build your tikZ pictures using python, instead of using directly tikZ sintaxis.

Main Index

  • Main tikzpy class

    • tikzpy object which contains the drawing info

      • tikZ = tikzpy.pytikz() <_00_pytikZ>
    • Points: add and edit reference spatial points in a 3D space

      • points tikZ.pto <_01_pytikZ_points>
    • 2D shapes: add and edit 2D shapes and text in a 3D space

      • shapes tikZ.shp <_02_pytikZ_shapes>
    • plots: buld-in plots based on tikzpy

      • plots tikZ.plots <_03_pytikZ_plots>
    • labels: add, edit, desactive labels of the different shapes

      • labels tikZ.lbl <_04_pytikZ_labels>
    • colors: add and define custom colors and transparencies

      • colors tikZ.col <_05_pytikZ_colors>
    • groups: add points and shapes to a group and operate with such container

      • groups tikZ.grp <_06_pytikZ_groups>
  • Utilities included in tikzpy

    • files crawler: utility to crawl files by extension or name in folders

      • files_crawl tikzpy.files_crawl <_files_crawl>

Or check the reference index <py_tikz_reference_index_doc>

First steps tikzpy

First steps and introductory examples on how to use tikzpy can be found in this section.

  • tikzpy: tikZ = tikzpy.pytikz() --> main class examples <_00_pytikZ>
  • Points: tikZ.pto --> points examples </_examples/tikzpy_points/test_gen>
  • 2D shapes: tikZ.shp --> shapes examples </_examples/tikzpy_shapes/test_gen>
  • build-in plots: --> plots examples </_examples/tikzpy_plots/test_gen>
  • labels: --> labels examples </_examples/tikzpy_labels/test_gen>
  • colors: tikZ.col --> colors examples </_examples/tikzpy_colors/test_gen>
  • groups: tikZ.grp --> group examples </_examples/tikzpy_groups/test_gen>

Requirements or pre-requisites

  • Install Latex in Windows:

    • Install MikTex (miktex.org)
  • Install Latex in Ubuntu:

    • sudo apt-get install texlive-full
    • sudo apt-get install xzdec
    • sudo tlmgr install pgf
    • sudo tlmgr install tikz-cd
  • Packages: tikz, tikz-3dplot
  • TikZ libraries: shapes,arrows,decorations, decorations.pathmorphing,arrows.meta,patterns
  • Recomended to install ImageMagik and Ghostscript for png creation in Windows

Gallery of drawings and pictures performed using tikzpy

Code examples of drawings and pictures carried out using tikzpy. Contact and send us your drawings based of tikzpy if you want them to be included in this section.

Indices and tables

  • genindex
  • modindex
  • search