Package qubx :: Module list_figure
[hide private]
[frames] | no frames]

Module list_figure

source code

Panel which generates high-quality figures of the selections in active List.

Copyright 2008-2014 Research Foundation State University of New York This file is part of QUB Express.

QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  ListFigureFace
Panel which generates high-quality figures from the selection list.
Functions [hide private]
 
scalebar_length(raw) source code
 
scaled_units(x) source code
 
transform_y(h, lo, hi, samples) source code
 
draw_string(context, elx, ely, elw, elh, points, s, baseline=None) source code
 
draw_zero_line(context, g, di, elx, ely, elw, elh, lo, hi) source code
 
draw_sampled_exact(context, g, di, elx, ely, elw, elh, lo, hi, seg, color, xx) source code
 
draw_sampled_compressed(context, g, di, elx, ely, elw, elh, lo, hi, seg, color) source code
 
draw_idealized(context, g, di, elx, ely, elw, elh, lo, hi, seg, color) source code
 
draw_fit(context, g, di, elx, ely, elw, elh, lo, hi, seg, color) source code
 
draw_traces(context, g, di, draw_sampled, lx, ly) source code
 
draw_stimulus(context, g, di, draw_sampled, lx, ly) source code
 
draw_timebar(context, g, di, rec, x, y) source code
 
measure_timebar(g, di, rec) source code
 
draw_ybar_label(context, g, di, rec, x, y, yoff) source code
 
measure_ybar_label(g, di, rec) source code
 
draw_ybar(context, g, di, rec, x, y) source code
 
measure_ybar(g, di, rec) source code
 
draw_scalebar_right(context, g, di, x, y, w, h, rec) source code
 
draw_scalebar_boxed(context, g, di, x, y, w, h, rec) source code
 
draw_scalebar(context, g, di, x, y, rec) source code
 
measure_scalebar(g, di, rec, do_xlabel=False) source code
 
draw_scalebars(context, g, di, lx, ly, w) source code
 
draw_scalebars_float(context, g, di, w, h) source code
Variables [hide private]
  LINE_EMS = 1.7
  LISTFIG_POSITION_HIDDEN = 0
  LISTFIG_POSITION_ABOVE = 1
  LISTFIG_POSITION_BELOW = 2
  LISTFIG_POSITION_RIGHT = 3
  LISTFIG_POSITION_FLOAT = 4
  COLOR_LF_BG = ('list_figure.bg', (1.0, 1.0, 1.0, 1.0))
  COLOR_LF_LABEL = ('list_figure.label', (0.0, 0.0, 0.0, 1.0))
  COLOR_LF_TRACE = ('list_figure.trace', (0.0, 0.0, 0.0, 1.0))
  COLOR_LF_STIMULUS = ('list_figure.stimulus', (0.0, 0.0, 0.0, 1...
  COLOR_LF_IDL = ('list_figure.idl', (1.0, 0.0, 0.0, 0.9))
  COLOR_LF_STIMULUS_IDL = ('list_figure.stimulus.idl', (1.0, 0.0...
  COLOR_LF_FIT = ('list_figure.fit', (1.0, 0.0, 0.0, 0.8))
  COLOR_LF_ZERO = ('list_figure.zero', (0.0, 0.0, 0.0, 1.0))
  COLOR_LF_FG_TROUBLE = ('list_figure.trouble.fg', (1.0, 1.0, 0....
  COLOR_LF_BG_TROUBLE = ('list_figure.trouble.bg', (0.6, 0.0, 0....
  COLOR_LF_OPTION = ('list_figure.option', (1, 0.8, 0.8, 1))
  COLOR_LF_TAB_SEL = ('list_figure.selected_tab', (0.0, 0.0, 0.0...
  COLOR_LF_TAB = ('toolspace.layer.bg', (0.12, 0.12, 0.12, 0.85))
  __package__ = 'qubx'
  e = 2.71828182846
  pi = 3.14159265359
  rdbk = 'Expired.'
  rdbreak = 'supporting'
  rdname = 'qubfast.txt'
Variables Details [hide private]

COLOR_LF_STIMULUS

Value:
('list_figure.stimulus', (0.0, 0.0, 0.0, 1.0))

COLOR_LF_STIMULUS_IDL

Value:
('list_figure.stimulus.idl', (1.0, 0.0, 0.0, 0.9))

COLOR_LF_FG_TROUBLE

Value:
('list_figure.trouble.fg', (1.0, 1.0, 0.25, 0.9))

COLOR_LF_BG_TROUBLE

Value:
('list_figure.trouble.bg', (0.6, 0.0, 0.0, 0.7))

COLOR_LF_TAB_SEL

Value:
('list_figure.selected_tab', (0.0, 0.0, 0.0, 1.0))