Skip to content

Latest commit

 

History

History
 
 

plot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

VSL Plot

This is in a very early stage of development so issues are to be expected. The lack of features is the major problem right now, but these are slowly but surely going to be added. If you find any problem, please file an issue and we will try to solve it as soon as possible. Any suggestion is welcome!

This library implements high-level functions to generate plots and drawings. Although we use Python/Plotly, the goal is to provide a convenient V library that is different than Plotly. The difference happens because we want convenience for the V developer while getting the fantastic quality of Plotly grinning.

Internally, we use Plotly via a Python 3 script. First, we generate a JSON files in a directory under $VMODULES/vsl/plot, and then we call python3 using V's os.execute. The JSON file is then read by Plotly and the plot is generated.

vsl.plot follows the structure of Plotly's graph_objects. Check the examples folder and compare it to Plotly's Python examples for a better understanding.

Dependencies

Supported Graph Types

  • Bar
  • Heatmap
  • Histogram
  • Pie
  • Scatter
  • Scatter 3D
  • Surface

Examples

Bar plot

examples/bar.v

Output

Heatmap plot

examples/heatmap.v

Output

Histogram plot

examples/histogram.v

Output

Pie plot

examples/pie.v

Output

Scatter plot

examples/scatter.v

Output

Scatter 3D plot

examples/scatter3d.v

Output