Package qubx :: Module fit_space :: Class FitSpace
[hide private]
[frames] | no frames]

Class FitSpace

source code

        object --+                    
                 |                    
        ??.GObject --+                
                     |                
            gtk.Object --+            
                         |            
        object --+       |            
                 |       |            
gobject.GInterface --+   |            
                     |   |            
  atk.ImplementorIface --+            
                         |            
        object --+       |            
                 |       |            
gobject.GInterface --+   |            
                     |   |            
         gtk.Buildable --+            
                         |            
                gtk.Widget --+        
                             |        
               gtk.DrawingArea --+    
                                 |    
               toolspace.ToolSpace --+
                                     |
                                    FitSpace
Known Subclasses:

Mirrors and controls a qubx.fit_robot.FitRobot.

Instance Methods [hide private]
 
__init__(self, label='Fit', cBG=('fit.bg', (1, 1, 1, 1)), cGrid=('fit.grid', (0.3, 1, 0.3, 0.5)), cData=('fit.data', (0, 0, 0, 1)), cExtra=('fit.extra', (0, 0, 1, 0.8)), cCurve=('fit.curve', (1, 0, 0, 0.8)), cLayer=('fit.layer', (1, 0.8, 0.33, 0.8)), cText=('fit.text', (0, 0.4, 0, 1)), cNumber=('fit.number', (0, 0, 0, 1)), cButton=('fit.button', (0.7, 0, 0, 1)), cFill=('fit.fill', (0.5, 0.5, 0.5, 1)), cGridZero=('fit.gridzero', (1, 0.3, 0.3, 0.5)), cGridLbl=('fit.gridlbl', (0, 0, 0, 1)), global_name='')
Creates a new view on a qubx.fit_robot.FitRobot, creating the robot too if None provided.
source code
 
set_data_width(self, x) source code
 
set_data_rad(self, x) source code
 
set_extra_width(self, x) source code
 
set_extra_rad(self, x) source code
 
set_curve_width(self, x) source code
 
set_draw_data(self, x) source code
 
set_draw_hist(self, x) source code
 
set_draw_fit_when_hidden(self, x) source code
 
set_xzoom(self, x) source code
 
set_yzoom(self, x) source code
 
set_caption(self, x) source code
 
set_global_name(self, x)
Override to update your NbItems global_names; remember to call FitSpace.set_global_name(x).
source code
 
dispose(self)
If you didn't provide a robot to the constructor, call this when you're done to stop the robot thread.
source code
 
__onClickEditBounds(self, x, y, e) source code
 
set_bounds(self, x0, y0, x1, y1) source code
 
__onClickShowFit(self, x, y, e) source code
 
click_show_fit_controls(self) source code
 
__onClickHideControls(self, x, y, e) source code
 
click_hide_fit_controls(self) source code
 
update_coords_from_mouse(self, x, y)
Updates the lower-left display of data-coords under the mouse, given mouse-coords x and y.
source code
 
__onZoom(self, sublayer, factor) source code
 
draw_extra_series(self, context, w, h, arr, d0=None, d1=None) source code
 
__onDraw(self, context, w, h) source code
 
__onData(self, xx, yy, vvv, v_names) source code
 
__onExpr(self, curve_name, curve_expr, params, param_vals, lo, hi, can_fit) source code
 
__onParam(self, index, name, value, lo, hi, can_fit) source code
 
__onIteration(self, param_vals, iteration) source code
 
__onStatus(self, robot, msg) source code
 
__onStats(self, correlation, is_pseudo, std_err_est, ssr, r2, runs_prob) source code
 
nb_get_series(self) source code
 
nb_picture_get_shape(self) source code
 
nb_picture_draw(self, context, w, h) source code

Inherited from toolspace.ToolSpace: add_layer, button_press, button_release, draw_all_overlays, draw_to_context, draw_to_drawable, enter_notify, find_layer, focus_in, focus_out, invalidate_layer, key_press, key_release, motion_notify, redraw_canvas, release_button, remove_layer, resize_event, scroll, set_appearance, set_can_focus, set_layerset, set_tool

Inherited from toolspace.ToolSpace (private): _expose, _realize

Inherited from gtk.DrawingArea: size

Inherited from gtk.Widget: activate, add_accelerator, add_events, add_mnemonic_label, can_activate_accel, child_focus, child_notify, class_path, create_pango_context, create_pango_layout, destroy, do_button_press_event, do_button_release_event, do_can_activate_accel, do_client_event, do_composited_changed, do_configure_event, do_delete_event, do_destroy_event, do_direction_changed, do_drag_begin, do_drag_data_delete, do_drag_data_get, do_drag_data_received, do_drag_drop, do_drag_end, do_drag_leave, do_drag_motion, do_enter_notify_event, do_event, do_expose_event, do_focus, do_focus_in_event, do_focus_out_event, do_get_accessible, do_grab_broken_event, do_grab_focus, do_grab_notify, do_hide, do_hide_all, do_hierarchy_changed, do_key_press_event, do_key_release_event, do_leave_notify_event, do_map, do_map_event, do_mnemonic_activate, do_motion_notify_event, do_no_expose_event, do_parent_set, do_popup_menu, do_property_notify_event, do_proximity_in_event, do_proximity_out_event, do_realize, do_screen_changed, do_scroll_event, do_selection_clear_event, do_selection_get, do_selection_notify_event, do_selection_received, do_selection_request_event, do_show, do_show_all, do_show_help, do_size_allocate, do_size_request, do_state_changed, do_style_set, do_unmap, do_unmap_event, do_unrealize, do_visibility_notify_event, do_window_state_event, drag_begin, drag_check_threshold, drag_dest_add_image_targets, drag_dest_add_text_targets, drag_dest_add_uri_targets, drag_dest_find_target, drag_dest_get_target_list, drag_dest_get_track_motion, drag_dest_set, drag_dest_set_proxy, drag_dest_set_target_list, drag_dest_set_track_motion, drag_dest_unset, drag_get_data, drag_highlight, drag_source_add_image_targets, drag_source_add_text_targets, drag_source_add_uri_targets, drag_source_get_target_list, drag_source_set, drag_source_set_icon, drag_source_set_icon_name, drag_source_set_icon_pixbuf, drag_source_set_icon_stock, drag_source_set_target_list, drag_source_unset, drag_unhighlight, draw, ensure_style, error_bell, event, freeze_child_notify, get_accessible, get_action, get_activate_signal, get_allocation, get_ancestor, get_app_paintable, get_can_default, get_can_focus, get_child_requisition, get_child_visible, get_clipboard, get_colormap, get_composite_name, get_direction, get_display, get_double_buffered, get_events, get_extension_events, get_has_tooltip, get_has_window, get_mapped, get_modifier_style, get_name, get_no_show_all, get_pango_context, get_parent, get_parent_window, get_pointer, get_realized, get_receives_default, get_requisition, get_root_window, get_screen, get_sensitive, get_settings, get_size_request, get_snapshot, get_state, get_style, get_tooltip_markup, get_tooltip_text, get_tooltip_window, get_toplevel, get_visible, get_visual, get_window, grab_add, grab_default, grab_focus, grab_remove, has_default, has_focus, has_grab, has_rc_style, has_screen, hide, hide_all, hide_on_delete, input_shape_combine_mask, intersect, is_ancestor, is_composited, is_drawable, is_focus, is_sensitive, is_toplevel, keynav_failed, list_accel_closures, list_mnemonic_labels, map, menu_get_for_attach_widget, mnemonic_activate, modify_base, modify_bg, modify_cursor, modify_fg, modify_font, modify_style, modify_text, path, queue_clear, queue_clear_area, queue_draw, queue_draw_area, queue_resize, queue_resize_no_redraw, rc_get_style, realize, region_intersect, remove_accelerator, remove_mnemonic_label, render_icon, reparent, reset_rc_styles, reset_shapes, selection_add_target, selection_add_targets, selection_clear_targets, selection_convert, selection_owner_set, selection_remove_all, send_expose, send_focus_change, set_accel_path, set_activate_signal, set_allocation, set_app_paintable, set_can_default, set_child_visible, set_colormap, set_composite_name, set_direction, set_double_buffered, set_events, set_extension_events, set_has_tooltip, set_has_window, set_mapped, set_name, set_no_show_all, set_parent, set_parent_window, set_realized, set_receives_default, set_redraw_on_allocate, set_scroll_adjustments, set_sensitive, set_set_scroll_adjustments_signal, set_size_request, set_state, set_style, set_tooltip_markup, set_tooltip_text, set_tooltip_window, set_uposition, set_usize, set_visible, set_window, shape_combine_mask, show, show_all, show_now, size_allocate, size_request, style_attach, style_get_property, thaw_child_notify, translate_coordinates, trigger_tooltip_query, unmap, unparent, unrealize

Inherited from gtk.Object: do_destroy, flags, remove_data, remove_no_notify, set_flags, unset_flags

Inherited from unreachable.GObject: __copy__, __deepcopy__, __delattr__, __eq__, __gdoc__, __ge__, __gobject_init__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from atk.ImplementorIface: ref_accessible

Inherited from gtk.Buildable: add_child, construct_child, do_add_child, do_construct_child, do_get_internal_child, do_parser_finished, do_set_name, get_internal_child, parser_finished

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __explore_featured = ['controls', 'controlsHidden', 'draw_data...

Inherited from gtk.DrawingArea: __gtype__

Instance Variables [hide private]
  data_width
line width of data trace, in ems
  data_rad
radius of data points, in ems
  extra_width
line width of additional series
  extra_rad
radius of additional series' data points
  curve_width
line width of curve
  caption
text across the top, when controls are hidden
  draw_data
True (default) to draw data and fit curve
  global_name
how self might be called globally, for scripting
  controls
FitControls
  controlsHidden
minimal LayerSet
  d2y
f(data value) -> y
  t2x
f(x) -> t
  u2y
list of f(extra series value) -> y
  x2t
f(t) -> x
  y2d
f(y) -> data value
  y2u
list of f(y) -> extra series value

Inherited from toolspace.ToolSpace: OnChangeLayerset, OnChangeTool, OnDblClick, OnDrag, OnDraw, OnDrawGL, OnKeyPress, OnKeyRelease, OnNeedPopup, OnOverlay, OnPress, OnRelease, OnRoll, OnScroll, appearance, can_focus, dim, layerset, tool, tooltip

Properties [hide private]
  draw_hist
  draw_fit_when_hidden
  xzoom
  yzoom
  t0
  t1
  d0
  d1

Inherited from gtk.Widget: allocation, name, parent, requisition, saved_state, state, style, window

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, label='Fit', cBG=('fit.bg', (1, 1, 1, 1)), cGrid=('fit.grid', (0.3, 1, 0.3, 0.5)), cData=('fit.data', (0, 0, 0, 1)), cExtra=('fit.extra', (0, 0, 1, 0.8)), cCurve=('fit.curve', (1, 0, 0, 0.8)), cLayer=('fit.layer', (1, 0.8, 0.33, 0.8)), cText=('fit.text', (0, 0.4, 0, 1)), cNumber=('fit.number', (0, 0, 0, 1)), cButton=('fit.button', (0.7, 0, 0, 1)), cFill=('fit.fill', (0.5, 0.5, 0.5, 1)), cGridZero=('fit.gridzero', (1, 0.3, 0.3, 0.5)), cGridLbl=('fit.gridlbl', (0, 0, 0, 1)), global_name='')
(Constructor)

source code 

Creates a new view on a qubx.fit_robot.FitRobot, creating the robot too if None provided.

Parameters:
  • label - string to identify the robot, if one is created
  • cBG - qubx.toolspace-style colorref for the background
  • cGrid - colorref for grid lines
  • cData - colorref for data series
  • cExtra - colorref for additional series
  • cCurve - colorref for trend line
  • cLayer - colorref for floating panels
  • cText - colorref for static text in floating panels
  • cNumber - colorref for variable/editable text in floating panels
  • cButton - colorref for clickable text in floating panels
  • cFill - colorref for histogram bar interior
  • cGridZero - colorref for gridlines at zero
  • cGridLbl - colorref for grid labels
Overrides: object.__init__

Class Variable Details [hide private]

__explore_featured

Value:
['controls',
 'controlsHidden',
 'draw_data',
 'data_width',
 'data_rad',
 'extra_width',
 'extra_rad',
 'curve_width',
...

Instance Variable Details [hide private]

data_width

line width of data trace, in ems
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

data_rad

radius of data points, in ems
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

extra_width

line width of additional series
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

extra_rad

radius of additional series' data points
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

curve_width

line width of curve
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

caption

text across the top, when controls are hidden
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

draw_data

True (default) to draw data and fit curve
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

global_name

how self might be called globally, for scripting
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Property Details [hide private]

draw_hist

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

draw_fit_when_hidden

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

xzoom

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

yzoom

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

t0

Get Method:
unreachable(self)

t1

Get Method:
unreachable(self)

d0

Get Method:
unreachable(self)

d1

Get Method:
unreachable(self)