Skip to main content

create execution graph in GIF/PDF with LaTex

Project description

Graphanime - create execution graph in GIF/PDF

This module aim to create GIF, APNG, pdf type standalone or Beamer from a graph written in LaTex. And showing an excution of one algorithm (for exemple Dijkstra)

Install module:

pip install graphanime

Commande

load(file.tex)

return an object Graph which represented graph write in LaTeX

Dijkstra(graph,source,sink):

excute dijkstra algorithm on graph and return list of graph

gen_beamer(anim,file)

it's Back-end for slide Beamer with a source is list of graph (anim)

gen_pdf(anim,file)

it's Back-end for natural pdf with a source is list of graph (anim)

gen_gif(anim,file)

it's Back-end for GIF with a source is list of graph (anim)

gen_apng(anim,file)

it's Back-end for APNG with a source is list of graph (anim) WARNING: it's not support everywhere

Template

\documentclass[tikz]{standalone}

\usepackage{tikz}
\usetikzlibrary{quotes}
%\usepackage{}
%\use...library{}

%\tikzset{every figure} = []
\begin{document}
	\begin{tikzpicture} 
		%\node (nom node) at(x,y) [options separées par virgules] {affichage} ;
		\node () at(,) [] {} ;
		\node () at(,) [] {} ;
		
%(nom node): charactères interdits: ( ) [ ] ; { } ,
%at(x,y): optionel : x et y doivent être des coordonnées viables: des nombres 
%[options séparées par virgules]:  les options du nœud. En détail certain: 			 
	%fill=couleur
	%label=texte du label ou label={texte du label} ou label={:texte du label}
	%label={position du label:texte du label}
	%label={[couleur du label]:texte du label}
	%label={[couleur du label]position du label:texte du label}
	%texte du label : charactères interdits: ; { } ,
	%draw ou draw=
	%draw=couleur{Affichage}: charactères interdits: { } [ ]; 
	
		%\path (nom node A) edge[options separées par virgules] (nom node B);
		\path 
		() edge[] ()
		() edge[] ()
		;

%nom node: fait reference à un nom de nœud défini plus haut
%[options séparées par virgules]:  les options de l’arrête/arc. En détail certain:
	%-> ou <-ou -: le sens de l’arrête
	%"edge_label": indication sur l’arrête, pour Dijkstra indique le poids, pour Dijkstra option obligatoire 
	% edge_label : charactères interdits: ; , 
	%color=couleur: la couleur de l’arrete.
	\end{tikzpicture}
\end{document}

exemple

    x = load('Exemples/exemple_dijkstra_wiki.tex')
    A = Dijkstra(x, "node 1", "node 5")
    gen_gif(A, "versusWiki",700)

And for more exemple go to github

Change Log

0.0.7

change documentation FR to EN

0.0.5

first realese that works well

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphanime-0.0.7.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphanime-0.0.7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file graphanime-0.0.7.tar.gz.

File metadata

  • Download URL: graphanime-0.0.7.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for graphanime-0.0.7.tar.gz
Algorithm Hash digest
SHA256 6341f130e7c83341cf365ae802f610d80d9a7c5985a9d19f7f81164666f08a2d
MD5 926e11150b710717d366e3c2274337ac
BLAKE2b-256 8001e5bf7aba86877c4df2f5b9e89821d05005c14eb31ef24c3d7e6cc0ce0235

See more details on using hashes here.

File details

Details for the file graphanime-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: graphanime-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for graphanime-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 14a874ce8d2fb93e856afbe254974a58b76e6abadc97ca0b4676e5a94e242140
MD5 26dfb834a3886b4be2958bd6b97b9a8d
BLAKE2b-256 28f8b20c590bfd69336cb7f0e2e1184b85c0ca6de2be942c4f0ebf752cae8ecc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page