Requirement: Install Vincent
$ pip install vincent
warning: Requires Panda which requires NumPy
Example 1: simple line chart
# import vincent library = import vincent # Initialize Vincent in the notebook vincent.core.initialize_notebook () # pass parameters to the bar method Line = vincent.Line ([ 10 , 20 , 30 , 20 , 15 , 30 , 45 ]) # Show graph Line.display () |
Output:
Example 2: line chart with axis labels
# import Vincent’s library import vincent < / code> # Initialize Vincent in notebook vincent.core.initialize_notebook () # pass parameters to the bar method Line = vincent.Line ([ 10 , 20 , 30 , 20 , 15 , 30 , 45 ]) # give axis names Line. axis_titles (x = ’X-axis’ , y = ’Y-axis’ ) # Show graph Line.display () |
Output:
For more information on Vincent and Vincent’s line plots visit this link