UniDec
Universal Deconvolution of Mass and Ion Mobility Spectra
Public Member Functions | Public Attributes | List of all members
UniDec.unidec_modules.plot1d.Plot1d Class Reference
Inheritance diagram for UniDec.unidec_modules.plot1d.Plot1d:
Inheritance graph
[legend]
Collaboration diagram for UniDec.unidec_modules.plot1d.Plot1d:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, args, kwargs)
 
def plotrefreshtop (self, xvals, yvals, title="", xlabel="", ylabel="", label="", config=None, color="black", marker=None, zoom="box", nopaint=False, test_kda=False, integerticks=False, kwargs)
 
def plotadd
 
def addtext (self, txt, x, y, vlines=True, color="k", kwargs)
 
def textremove (self)
 
def filledplot
 
def histogram
 
def barplottop
 

Public Attributes

 mlist
 
 x2
 
 colors
 
 xlabel
 
 ylabel
 
 zoomtype
 
 subplot1
 
 flag
 
 text
 
 lines
 

Detailed Description

Class for 1D plots.

Constructor & Destructor Documentation

def UniDec.unidec_modules.plot1d.Plot1d.__init__ (   self,
  args,
  kwargs 
)
Inherit from PlottingWindow
:param args:
:param kwargs:
:return:

Member Function Documentation

def UniDec.unidec_modules.plot1d.Plot1d.addtext (   self,
  txt,
  x,
  y,
  vlines = True,
  color = "k",
  kwargs 
)
Adds text and lines. Puts things that have been added in self.lines and self.text lists.
:param txt: String of text to add
:param x: x position for where to add
:param y: y position for where to add
:param vlines: Whether to add vertical lines to the text as well.
:param color: Color of text and lines
:param kwargs: Keywords
If range=(a,b) is specified, adds a line from a to b and vertical lines at a and b.
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.plot1d.Plot1d.barplottop (   self,
  xarr,
  yarr,
  peakval,
  colortab,
  xlabel = "",
  ylabel = "",
  title = "",
  zoom = "box",
  repaint = True 
)
Create a bar plot.
:param xarr: x value array
:param yarr: y value array
:param peakval: Bar labels to be listed below bars
:param colortab: List of colors for the various bars
:param xlabel: Label for x axis
:param ylabel: Label for y axis
:param title: Plot title
:param zoom: Type of zoom ('box' or 'span)
:param repaint: Boolean, whether to repaint or not when done.
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.plot1d.Plot1d.filledplot (   self,
  x,
  y,
  color = "black" 
)
Creates a plot filled between the y values and the y axis
:param x: x values
:param y: y values
:param color: color
:return: None
def UniDec.unidec_modules.plot1d.Plot1d.histogram (   self,
  xarray,
  labels = None,
  xlab = "",
  ylab = "",
  title = "" 
)
Creates a histogram plot.
:param xarray: Array of values in (N x M) array
:param labels: Labels for value
:param xlab: x axis label
:param ylab: y axis label
:param title: Plot Title
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.plot1d.Plot1d.plotadd (   self,
  xvals,
  yvals,
  colval = "black",
  newlabel = "",
  nopaint = True 
)
Adds a plot.
:param xvals: x values
:param yvals: y values
:param colval: Color
:param newlabel: Label
:param nopaint: Boolean, whether to repaint or not
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.plot1d.Plot1d.plotrefreshtop (   self,
  xvals,
  yvals,
  title = "",
  xlabel = "",
  ylabel = "",
  label = "",
  config = None,
  color = "black",
  marker = None,
  zoom = "box",
  nopaint = False,
  test_kda = False,
  integerticks = False,
  kwargs 
)
Create a new 1D plot.
:param xvals: x values
:param yvals: y values
:param title: Plot title
:param xlabel: x axis label
:param ylabel: y axis label
:param label: label for legend
:param config: UniDecConfig object
:param color: Plot color
:param marker: Marker type
:param zoom: zoom type ('box' or 'span')
:param nopaint: Boolean, whether to repaint or not
:param test_kda: Boolean, whether to attempt to plot kDa rather than Da
:param integerticks: Boolean, whether to use inter tickmarks only
:param kwargs: Keywords
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.plot1d.Plot1d.textremove (   self)
Remove text and lines previous placed in the self.text and self.lines containers
:return: None

Member Data Documentation

UniDec.unidec_modules.plot1d.Plot1d.colors
UniDec.unidec_modules.plot1d.Plot1d.flag
UniDec.unidec_modules.plot1d.Plot1d.lines
UniDec.unidec_modules.plot1d.Plot1d.mlist
UniDec.unidec_modules.plot1d.Plot1d.subplot1
UniDec.unidec_modules.plot1d.Plot1d.text
UniDec.unidec_modules.plot1d.Plot1d.x2
UniDec.unidec_modules.plot1d.Plot1d.xlabel
UniDec.unidec_modules.plot1d.Plot1d.ylabel
UniDec.unidec_modules.plot1d.Plot1d.zoomtype

The documentation for this class was generated from the following file: