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
-uor--undirectedto set graph undirected. - linked vertices(source and target): string, there are necessary.
- self-loop: use command line parameter
-sor--self-loopto 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.htmlPlot undirected graph through both edge file and node file :
python simpleplot -e edges.csv -n nodes.csv -o simpleplot.html -uUse 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: