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.8

change name github project

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.8.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.8-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphanime-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 513ac238931bbcc9c69bcee6ce5b58f9fac0b05a15ba5e84403c6d68d104b074
MD5 f08a87ae877b955a37bde559168fd3c7
BLAKE2b-256 e577eb0b455ad2fbf3a2b59f91668e4b703126258a1e45853459fa6d489e92a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphanime-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ae50ec5402ea485d8605bb4aebe657c7a50759f19a6d7c858e598ea0abe3449f
MD5 3ebe99f274f8a07b8ce5886912e46c66
BLAKE2b-256 4bb190fde0c7fd9689964c25a33294fc0f02e3e48b6b9af98f3d9ccc35715c08

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