Skip to content

Les1ie/simpleplot

Repository files navigation

Simpleplot

A simple plot library used to plot graph throuh edges file and vertices file.

It's designed for my gf WJie 😘~~

Usage

Installation

git clone https://github.com/Les1ie/simpleplot.git simpleplot
cd simpleplot
pip install -r requirements.txt

Vectice' Attribute

  • color: string, don't support in current version.
  • size: int, the symbol size of node, default is 20.

Edge's Attribute

  • 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's Ture (but you can see the arrow if you shrinking the graph).

Example

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.

Note for developer

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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages