Package tkintertable :: Module Plot :: Class pylabPlotter
[hide private]
[frames] | no frames]

Class pylabPlotter

source code

object --+
         |
        pylabPlotter

An interface to matplotlib for general plotting and stats, using tk backend

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
plotXY(self, x, y, title='', xlabel=None, ylabel=None, shape=None, clr=None, lw=1)
Do x-y plot of 2 lists
source code
 
doHistogram(self, data, bins=10)
Do a pylab histogram of 1 or more lists
source code
 
doBarChart(self, x, y, clr)
Do a pylab bar chart
source code
 
doPieChart(self, data)
Do a pylab bar chart
source code
 
setData(self, data)
Set the current plot data, useful for re-plotting without re-calling explicit functions from the parent
source code
 
hasData(self)
Is there some plot data?
source code
 
setDataSeries(self, names=None, start=1)
Set the series names, for use in legend
source code
 
setFormat(self, format)
Set current data format of currdata
source code
 
plotCurrent(self, data=None, graphtype='bar', show=True, guiopts=False, title=None)
Re-do the plot with the current options and data
source code
 
clear(self)
clear plot
source code
 
show(self) source code
 
saveCurrent(self, filename=None) source code
 
setTitle(self, title=None) source code
 
setxlabel(self, label=None) source code
 
setylabel(self, label=None) source code
 
setOptions(self, shape=None, grid=None, xscale=None, yscale=None, showlegend=None, legendloc=None, linewidth=None, graphtype=None, font=None, fontsize=None)
Set the options before plotting
source code
 
setupPlotVars(self)
Plot Vars
source code
 
applyOptions(self)
Apply the gui option vars to the plotter options
source code
 
plotSetup(self, data=None)
Plot options dialog
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  colors = ['#0049B4', '#C90B11', '#437C17', '#AFC7C7', '#E9AB17...
  linestyles = ['-', '--']
  shapes = ['o', '-', '--', ':', '.', 'p', '^', '<', 's', '+', '...
  legend_positions = ['best', 'upper left', 'upper center', 'upp...
  graphtypes = ['XY', 'hist', 'bar', 'pie']
  fonts = ['serif', 'sans-serif', 'cursive', 'fantasy', 'monospa...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

colors

Value:
['#0049B4',
 '#C90B11',
 '#437C17',
 '#AFC7C7',
 '#E9AB17',
 '#7F525D',
 '#F6358A',
 '#52D017',
...

shapes

Value:
['o',
 '-',
 '--',
 ':',
 '.',
 'p',
 '^',
 '<',
...

legend_positions

Value:
['best',
 'upper left',
 'upper center',
 'upper right',
 'center left',
 'center',
 'center rightlower left',
 'lower center',
...

fonts

Value:
['serif', 'sans-serif', 'cursive', 'fantasy', 'monospace']