Skip to content

kottmanj/leiwand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

leiwand

leiwandner graph plotter

needs python packages

  • planar (pip install planar)

Use this script like this

Use with 'mathematica' string

python leiwand.py mathematica={{weight,vertex1,mode1,vertex2,mode2},{weight,vertex1,mode1,vertex2,mode2}}

Or get the data into a file which list the data of the edges like:

weight vertex1 mode1 vertex2 mode2
weight vertex1 mode1 vertex2 mode2
python leiwand.py in=filename

You can call the script with several options like this

python leiwand.py in=filename key1=value1 key2=value2

option keys are the following

out="graph" #outputfiles will be graph.tex and graph.pdf  
line_width=2.0  
color0="{RGB}{0,0,204}"  # defines the color for mode 0  
color1="{RGB}{0,204,0}"  # defines the color for mode 1  
color2="{RGB}{204,0,0}"  # defines the color for mode 2  
vertex_color="{RGB}{255,250,205}" # defines the background color of the vertices  
bend00=0, # defines to which angle the lines between mode 0 and 0 are bend
bend11=10, 
bend22=-10,
bend01=20,
bend10=-20,
bend02=30,
bend20=-30,
bend12=40,
bend21=-40,

Manual vertex coordinates:

python leiwand.py in=data.txt coord_a=0.0,1.0 coord_b=0.0,2.0 coord_c=0.0,3.0 coord_d=0.0,4.0 coord_e=0.0,5.0 coord_f=0.0,6.0

About

leiwandner graph plotter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages