57a14faee7b0198e056e474c04ea346d148a2835,tutorial/example1d.py,Example1d,display,#Example1d#Any#Any#,123
Before Change
// of them. The first number in the tuple is the number of columns
// and the second is the number of rows.
//
figure.set_subplots(workspace.display_data.subplots)
//
// This is the signature for the current CP release
//
//def display(self, workspace):
After Change
// Uncomment the following if you"re using that version
//
def display(self, workspace, figure=None):
if figure is not None:
// Code for next release:
//
// A subplot is a matplotlib Axes. set_subplots sets up the arrangement
// of them. The first number in the tuple is the number of columns
// and the second is the number of rows.
//
figure.set_subplots(workspace.display_data.subplots)
next_release = True
else:
//
// create_or_find_figure will either create a new figure and window
// for the module or reuse a previously-created one. See above
// for discussion of subplots
//
figure = workspace.create_or_find_figure(
subplots = workspace.display_data.subplots)
next_release = False
if self.display_choice == D_GRAYSCALE_IMAGE:
figure.subplot_imshow_grayscale(
0, 0, // the subplot coordinates
workspace.display_data.grayscale, // the image
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: CellProfiler/CellProfiler
Commit Name: 57a14faee7b0198e056e474c04ea346d148a2835
Time: 2013-03-18
Author: leek@broadinstitute.org
File Name: tutorial/example1d.py
Class Name: Example1d
Method Name: display
Project Name: CellProfiler/CellProfiler
Commit Name: 7b758e55655a5b4a22a2ff10fb7df6f87300504e
Time: 2015-02-06
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/displayplatemap.py
Class Name: DisplayPlatemap
Method Name: display
Project Name: CellProfiler/CellProfiler
Commit Name: 07b4d38f8f857b90680daaf2ead30d31b7be6719
Time: 2012-09-17
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/relateobjects.py
Class Name: RelateObjects
Method Name: display