Module plotting
[hide private]
[frames] | no frames]

Module plotting

source code

This module has wrapper functions to quickly create charts

Functions [hide private]
 
getbar(pos, val, xticks=None, xlabel='', ylabel='', title='Barchart')
Creates horizontal bar graph and save in to temporary file having .png extension.
source code
 
getpie(values, lbls)
Creates a simple pie chart and save in to temporary file having .png extension.
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

getbar(pos, val, xticks=None, xlabel='', ylabel='', title='Barchart')

source code 

Creates horizontal bar graph and save in to temporary file having .png extension. This functions returns the path of the generated file

Parameters:
  • pos - list of positions of data on x-axis
  • val - list of heights
  • xticks - list of markers to rename x-axix values
  • xlabel - label for x-axis
  • ylabel - label for y-axix
  • title - title of the plot @return : path of the generated graph

getpie(values, lbls)

source code 

Creates a simple pie chart and save in to temporary file having .png extension. This functions returns the path of the generated file

Parameters:
  • values - values to be plot
  • lbls - labels in requence
Returns:
path of the generated graph