Skip to content

A Python module using pandas, numpy and plotly to create a 3d line plot from the .csv file output of the weaver algorithm.

License

Notifications You must be signed in to change notification settings

discocube/plot_solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example plot Example plot of a solution from weaver

Plot Solution

This Python module uses pandas, numpy and plotly to create a 3d line plot from the .csv file output of the weaver algorithm.

An example .csv file with the headers X, Y, Z, where each entry is a 3d point in the solution.

X,Y,Z
1,1,-1
1,-1,-1
-1,-1,-1
-1,1,-1
-1,1,1
-1,-1,1
1,-1,1
1,1,1
1,1,-1

Solution for a cube

Installation

To build and install the package (including any requirements listed in the 'install_requires' parameter in the setup.py file), in "editable" mode, run the following command:

pip install -e .

Usage

Once the package is installed, you can run it from the command line by using the plot_solution/main.py command followed by the path to your CSV file:

python plot_solution/main.py path/to/csv_file.csv

use this if you get the error: Command 'python' not found, did you mean: ...

python3 plot_solution/main.py path/to/csv_file.csv

This will create a 3D line plot you can pan, rotate and inspect using the data from the CSV file.

About

A Python module using pandas, numpy and plotly to create a 3d line plot from the .csv file output of the weaver algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages