A simple plot library used to plot graph throuh edges file and vertices file.
It's designed for my gf WJie
😘~~
git clone https://github.com/Les1ie/simpleplot.git simpleplot
cd simpleplot
pip install -r requirements.txt
- color: string, don't support in current version.
- size: int, the symbol size of node, default is
20
.
- color: string, user color's name or
"rgb(r,g,b)"
(notice it need the double quotes) to set it. - direction: default is directed, use the command line parameter
-u
or--undirected
to set graph undirected. - linked vertices(source and target): string, there are necessary.
- self-loop: use command line parameter
-s
or--self-loop
to set whether self-loop is allowed, but the self-loop edge is difficult to see even it'sTure
(but you can see the arrow if you shrinking the graph).
Plot graph just use edge file:
python simpleplot --edges edges.csv --output simpleplot.html
Plot undirected graph through both edge file and node file :
python simpleplot -e edges.csv -n nodes.csv -o simpleplot.html -u
Use python SimplePlot --help
for detail.
To expert the requriements of this project, use pipreq
as follow:
pipreqs ./
Do not use pip freeze
because it only saves the packages that are installed with pip install in your environment.
Documents of the dependicies libraries: