Package topo :: Package plotting :: Module plotgroup
[hide private]
[frames] | no frames]

Module plotgroup

source code

Hierarchy of PlotGroup classes, i.e. output-device-independent sets of plots.

Includes PlotGroups for standard plots of anything in a Sheet database, plus weight plots for one unit, and projections.

$Id: plotgroup.py 11315 2010-07-27 17:43:01Z ceball $


Version: $Revision: 11315 $

Classes [hide private]
  PlotGroup
Container that has one or more Plots and also knows how to arrange the plots and other special parameters.
  SheetPlotGroup
  TemplatePlotGroup
Container that allows creation of different types of plots in a way that is independent of particular models or Sheets.
  ProjectionSheetPlotGroup
Abstract PlotGroup for visualizations of the Projections of one ProjectionSheet.
  ProjectionSheetMeasurementCommand
A callable Parameterized command for measuring or plotting a specified Sheet.
  ProjectionActivityPlotGroup
Visualize the activity of all Projections into a ProjectionSheet.
  GridPlotGroup
A ProjectionSheetPlotGroup capable of generating coordinates on a 2D grid.
  RFProjectionPlotGroup
  RetinotopyPlotGroup
  ProjectionPlotGroup
  UnitMeasurementCommand
A callable Parameterized command for measuring or plotting specified units from a Sheet.
  CFProjectionPlotGroup
Visualize one CFProjection.
  UnitPlotGroup
Visualize anything related to a unit.
  ConnectionFieldsPlotGroup
Visualize ConnectionField for each of a CFSheet's CFProjections.
  FeatureCurvePlotGroup
Functions [hide private]
 
_cmp_plot(plot1, plot2)
Comparison function for sorting Plots.
source code
 
_get_value_range(plots)
Helper function to return the (min,max) given by the value_ranges of the given plots.
source code
 
default_measureable_sheet()
Returns the first sheet for which measure_maps is True (if any), or else the first sheet, for use as a default value.
source code
 
default_input_sheet()
Returns the first GeneratorSheet defined, for use as a default value.
source code
 
create_plotgroup(template_plot_type='bitmap', **params)
Create a new PlotGroup and add it to the plotgroups list.
source code
Variables [hide private]
  plotgroups = [('Activity', TemplatePlotGroup(auto_refresh=True...
Global repository of PlotGroups, to which users can add their own as needed.
  plotgroup_types = {'Connection Fields': <class 'topo.plotting....
  __package__ = 'topo.plotting'
Function Details [hide private]

_cmp_plot(plot1, plot2)

source code 
Comparison function for sorting Plots. It compares the precedence number first and then the src_name and name attributes.

_get_value_range(plots)

source code 

Helper function to return the (min,max) given by the value_ranges of the given plots.

Return None if there were no plots with value_range.

create_plotgroup(template_plot_type='bitmap', **params)

source code 

Create a new PlotGroup and add it to the plotgroups list.

Convenience function to make it simpler to use the name of the PlotGroup as the key in the plotgroups list.

template_plot_type: Whether the plots are bitmap images or curves ('curve').


Variables Details [hide private]

plotgroups

Global repository of PlotGroups, to which users can add their own as needed.
Value:
[('Activity', TemplatePlotGroup(auto_refresh=True, category='Basic', desired_maxim\
um_plot_height=0, doc='Plot the activity for all Sheets.', enforce_minimum_plot_he\
ight=True, integer_scaling=False, name='Activity', normalize='None', plot_hooks=[]\
, plot_immediately=True, pre_plot_hooks=[<function update_activity at 0xb32341c>],\
 prerequisites=[], print_level=100, sheet_coords=False)), ('RGB', TemplatePlotGrou\
p(auto_refresh=True, category='Other', desired_maximum_plot_height=0, doc='Combine\
 and plot the red, green, and blue activity for all appropriate Sheets.', enforce_\
minimum_plot_height=True, integer_scaling=False, name='RGB', normalize='None', plo\
...

plotgroup_types

Value:
{'Connection Fields': <class 'topo.plotting.plotgroup.ConnectionFieldsPlotGroup'>,
 'Projection': <class 'topo.plotting.plotgroup.CFProjectionPlotGroup'>,
 'Projection Activity': <class 'topo.plotting.plotgroup.ProjectionActivityPlotGrou\
p'>,
 'RF Projection': <class 'topo.plotting.plotgroup.RFProjectionPlotGroup'>,
 'Retinotopy': <class 'topo.plotting.plotgroup.RetinotopyPlotGroup'>}