Copyright 2008-2013 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/>.
|
make_frame(w,
h,
appearance,
controls_showing)
Returns (left, top, right, bottom) pixel coords, telling where to
draw the graph given that the whole space has dimensions (w,h). |
source code
|
|
|
make_x_transform(t0,
t1,
x0,
x1)
Returns (x2t, t2x), where t=x2t(x) and x=t2x(t), mapping t in
[t0..t1] to x in [x0..x1]. |
source code
|
|
|
make_y_transform(u0,
u1,
y0,
y1)
Returns (y2u, u2y), where u=y2u(y) and y=u2y(u), mapping u in
[u0..u1] to y in [y0..y1]. |
source code
|
|
|
gen_grid(u0,
u1,
z0,
z1,
appearance)
Yields successive gridline u-coordinates along one dimension. |
source code
|
|
|
|
|
|
|
|
|
|
|
draw_line(context,
appearance,
tt,
uu,
t2x,
u2y,
rad) |
source code
|
|
|
draw_hist(context,
appearance,
tt,
uu,
t2x,
u2y,
color,
fill_color,
hist_width=0.8) |
source code
|
|
|
|
|
SafeName(nm)
Returns nm, modified to be a legal python identifier. |
source code
|
|
|
|
|
pick_xy(series,
names,
x_name,
y_name)
Given (series, names) from read_data, and preferred x- and y- series names,
returns the most appropriate 2 series. |
source code
|
|
|
|
|
PromptChartBounds(x0,
y0,
x1,
y1,
title=None,
t0=None,
d0=None,
t1=None,
d1=None) |
source code
|
|
|
COLOR_FITSPACE_BG = ( ' fit.bg ' , ( 1, 1, 1, 1) )
|
|
COLOR_FITSPACE_GRID = ( ' fit.grid ' , ( 0.3, 1, 0.3, 0.5) )
|
|
COLOR_FITSPACE_GRIDZERO = ( ' fit.gridzero ' , ( 1, 0.3, 0.3, 0.5) )
|
|
COLOR_FITSPACE_GRIDLBL = ( ' fit.gridlbl ' , ( 0, 0, 0, 1) )
|
|
COLOR_FITSPACE_DATA = ( ' fit.data ' , ( 0, 0, 0, 1) )
|
|
COLOR_FITSPACE_FILL = ( ' fit.fill ' , ( 0.5, 0.5, 0.5, 1) )
|
|
COLOR_FITSPACE_EXTRA = ( ' fit.extra ' , ( 0, 0, 1, 0.8) )
|
|
COLOR_FITSPACE_CURVE = ( ' fit.curve ' , ( 1, 0, 0, 0.8) )
|
|
COLOR_FITSPACE_LAYER = ( ' fit.layer ' , ( 1, 0.8, 0.33, 0.8) )
|
|
COLOR_FITSPACE_TEXT = ( ' fit.text ' , ( 0, 0.4, 0, 1) )
|
|
COLOR_FITSPACE_NUMBER = ( ' fit.number ' , ( 0, 0, 0, 1) )
|
|
COLOR_FITSPACE_BUTTON = ( ' fit.button ' , ( 0.7, 0, 0, 1) )
|
|
COLOR_CORREL_LBL = ( ' fit.correl.lbl ' , ( 1, 1, 1, 1) )
|
|
COLOR_FITSPACE_BACKBUTTON = ( ' fit.backbutton ' , ( 0.2, 0.3, 0.2, ...
|
|
LINE_EMS = 1.5
|
|
FITFMT = ' %.4g '
|
|
ZOOM_SCROLL_FACTOR = 0.12
|
|
TheFitCopyDialog = <CopyDialog object at 0x7fd1234b9410 (GtkDi...
|
|
MAX_SERIES_NAME_LEN = 32
|
|
FIT_SPACE_HELP = ' You can enter either a function, such as\n ...
|
|
__package__ = ' qubx '
|
|
e = 2.71828182846
|
|
pi = 3.14159265359
|