Package schrodinger :: Package analysis :: Module enrichment :: Class PercentScreenPlotter
[hide private]
[frames] | no frames]

Class PercentScreenPlotter

  object --+    
           |    
_BasePlotter --+
               |
              PercentScreenPlotter


A class to plot multiple series of Calculator data as %Actives Found
vs %Screen.

API example
-----------
Where <enrich_calc1> and <enrich_calc2> are instances of Calculator:

enrich_plotter = enrichment.PercentScreenPlotter([enrich_calc1, enrich_calc2])
enrich_plotter.plot() # Launch interactive plot window.
enrich_plotter.savePlot('my_plot.png') # Save plot to file.

There are six line styles defined by default.  Plotting more than
six results cycles through the styles.

Instance Methods [hide private]
 
__init__(self, calcs, title='Screen Results', xlabel='Percent Screen', ylabel='Percent Actives Found')
Returns: None
list
getPointsFromCalc(self, calc)
Returns points for this metric from the given Calculator instance.

Inherited from _BasePlotter: addReferenceSeries, addSeries, getLegendLabel, getPlotFigure, plot, savePlot, showPlotWindow

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, calcs, title='Screen Results', xlabel='Percent Screen', ylabel='Percent Actives Found')
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • calcs (list) - list of Calculator instances
  • title (string) - the plot title
  • xlabel (str) - the x-axis label
  • ylabel (str) - the y-axis label
Returns:
None
Overrides: object.__init__

getPointsFromCalc(self, calc)

 

Returns points for this metric from the given Calculator instance.

Parameters:
  • calc (Calculator

    @return List of (x, y) points

    ) - Calculator instance.
Returns: list
Overrides: _BasePlotter.getPointsFromCalc