topo :: command :: pylabplots :: cyclic_tuning_curve :: Class cyclic_tuning_curve
[hide private]
[frames] | no frames]

Class cyclic_tuning_curve

source code

                           object --+                
                                    |                
    param.parameterized.Parameterized --+            
                                        |            
param.parameterized.ParameterizedFunction --+        
                                            |        
                             PylabPlotCommand --+    
                                                |    
                                     tuning_curve --+
                                                    |
                                                   cyclic_tuning_curve

Same as tuning_curve, but rotates the curve so that minimum y values are at the minimum x value to make the plots easier to interpret. Such rotation is valid only for periodic quantities like orientation or direction, and only if the correct period is set.

At present, the y_values and labels are rotated by an amount determined by the minmum y_value for the first curve plotted (usually the lowest contrast curve).

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
_format_x_tick_label(self, x) source code
 
_curve_values(self, i_value, j_value, curve)
Return the x, y, and x ticks values for the specified curve from the curve_dict.
source code

Inherited from tuning_curve: __call__

Inherited from tuning_curve (private): _reduce_ticks, _rotate

Inherited from param.parameterized.ParameterizedFunction: __reduce__, script_repr

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from param.parameterized.Parameterized (private): _add_parameter, _instantiate_param, _set_name, _setup_params

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: instance

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Static Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: __new__

Class Variables [hide private]
  cyclic_range = param.Number(default= pi, bounds= (0, None), so...
Range of the cyclic quantity (e.g.
  unit = param.String(default= "degrees", doc= ...
String to use in labels to specify the units in which curves are plotted.
  __params = {'coords': <param.List object at 0xb22c6ac>, 'cycli...
dict() -> new empty dictionary.
  name = <param.parameterized.String object at 0xb23b0d4>
String identifier for this object.

Inherited from tuning_curve: coords, plot_type, sheet, x_axis

Inherited from PylabPlotCommand: file_dpi, file_format, filename, filename_suffix, title

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_format_x_tick_label(self, x)

source code 
Overrides: tuning_curve._format_x_tick_label

_curve_values(self, i_value, j_value, curve)

source code 

Return the x, y, and x ticks values for the specified curve from the curve_dict.

With the current implementation, there may be cases (i.e., when the lowest contrast curve gives a lot of zero y_values) in which the maximum is not in the center. This may eventually be changed so that the preferred orientation is in the center.

Overrides: tuning_curve._curve_values

Class Variable Details [hide private]

cyclic_range

Range of the cyclic quantity (e.g. pi for the orientation of a symmetric stimulus, or 2*pi for motion direction or the orientation of a non-symmetric stimulus).
Value:
param.Number(default= pi, bounds= (0, None), softbounds= (0, 10), doc= """
        Range of the cyclic quantity (e.g. pi for the orientation of
        a symmetric stimulus, or 2*pi for motion direction or the
        orientation of a non-symmetric stimulus).""")

unit

String to use in labels to specify the units in which curves are plotted.
Value:
param.String(default= "degrees", doc= """
        String to use in labels to specify the units in which curves are plotted."\
"")

__params

dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
    d = {}
    for k, v in seq:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

Value:
{'coords': <param.List object at 0xb22c6ac>,
 'cyclic_range': <param.Number object at 0xb0b95cc>,
 'file_dpi': <param.Number object at 0xb0aea4c>,
 'file_format': <param.parameterized.String object at 0xb23b9cc>,
 'filename': <param.parameterized.String object at 0xb23ba04>,
 'filename_suffix': <param.parameterized.String object at 0xb23ba3c>,
 'name': <param.parameterized.String object at 0xb23b0d4>,
 'plot_type': <param.Callable object at 0xb23bf44>,
...