Package diffpy :: Package pdfgui :: Package control :: Module plotter
[hide private]
[frames] | no frames]

Module plotter

source code

Classes [hide private]
  Plotter
Plots a single graph.
Functions [hide private]
 
_transName(name)
translate name of y object This is mainly for plotting of parameters.
source code
 
_fullName(dataId)
construct full name
source code
 
_buildStyle(plotter, name, group, yNames)
trying to figure out a good style 1.
source code
Variables [hide private]
  colors = ('red', 'blue', 'magenta', 'cyan', 'green', 'yellow',...
  lines = ('solid', 'dash', 'dot', 'dashDot')
  symbols = ('circle', 'square', 'triangle', 'diamond')
  transdict = {'Gcalc': 'rcalc', 'Gdiff': 'rcalc', 'Gobs': 'robs...
  baselineStyle = {'color': 'black', 'legend': '_nolegend_', 'li...
  __id__ = '$Id: plotter.py 3066 2009-04-10 22:44:50Z juhas $'
Function Details [hide private]

_transName(name)

source code 
translate name of y object

This is mainly for plotting of parameters. GUI will pass in a integer to
indicate which parameter to be plotted. However, in data storage the
parameter is denoted as '@n'

name -- name of data item

_buildStyle(plotter, name, group, yNames)

source code 
trying to figure out a good style

1. generally we want line style for Gcalc, Gdiff, crw, symbol style for Gobs,
and line-symbol style for the rest
2. there is a preferred style for plotting a single PDF curve

plotter -- A plotter instance
name -- what is to be plotted (y name)
group -- which group the curve is in (group = -1 means it is the only group)
yNames -- all y to be plotted
return: style dictionay


Variables Details [hide private]

colors

Value:
('red',
 'blue',
 'magenta',
 'cyan',
 'green',
 'yellow',
 'darkRed',
 'darkBlue',
...

transdict

Value:
{'Gcalc': 'rcalc',
 'Gdiff': 'rcalc',
 'Gobs': 'robs',
 'Gtrunc': 'rcalc',
 'crw': 'rcalc'}

baselineStyle

Value:
{'color': 'black',
 'legend': '_nolegend_',
 'line': 'solid',
 'width': 1,
 'with': 'lines'}