plotting Package¶
ColormapDialog
Module¶
-
class
PyMca5.PyMcaGui.plotting.ColormapDialog.
ColormapDialog
(parent=None, name='Colormap Dialog')[source]¶ Bases:
PySide.QtGui.QDialog
-
sigColormapChanged
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
LegendSelector
Module¶
-
class
PyMca5.PyMcaGui.plotting.LegendSelector.
BaseContextMenu
(model)[source]¶ Bases:
PySide.QtGui.QMenu
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.LegendSelector.
LegendIcon
(parent=None)[source]¶ Bases:
PySide.QtGui.QWidget
-
paint
(painter, rect, palette)¶
-
paintEvent
(event)¶ Parameters: event (QPaintEvent) – event
-
setLineColor
(color)¶
-
setLineStyle
(style)¶ Parameters: style (int) – Must be in Qt.PenStyle - Possible joices are:
- Qt.NoPen Qt.SolidLine Qt.DashLine Qt.DotLine Qt.DashDotLine Qt.DashDotDotLine Qt.CustomDashLine
-
setLineWidth
(width)¶
-
setSymbol
(symbol)¶
-
setSymbolColor
(color)¶ Parameters: color – determines the symbol color
-
setSymbolStyle
(style)¶ Parameters: style (int) – Must be in Qt.BrushStyle - Possible joices are:
- Qt.NoBrush Qt.SolidPattern Qt.Dense1Pattern Qt.Dense2Pattern Qt.Dense3Pattern Qt.Dense4Pattern Qt.Dense5Pattern Qt.Dense6Pattern Qt.Dense7Pattern Qt.HorPattern Qt.VerPattern Qt.CrossPattern Qt.BDiagPattern Qt.FDiagPattern Qt.DiagCrossPattern Qt.LinearGradientPattern Qt.ConicalGradientPattern Qt.RadialGradientPattern
-
sizeHint
()¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.LegendSelector.
LegendListContextMenu
(model)[source]¶ Bases:
PyMca5.PyMcaGui.plotting.LegendSelector.BaseContextMenu
-
sigContextMenu
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.LegendSelector.
LegendListItemWidget
(parent=None, itemType=0)[source]¶ Bases:
PySide.QtGui.QAbstractItemDelegate
-
createEditor
(parent, option, idx)¶
-
curveType
= 0¶
-
editorEvent
(event, model, option, modelIndex)¶
-
imageType
= 1¶
-
paint
(painter, option, modelIndex)¶ Parameters: - painter (QPainter) –
- option (QStyleOptionViewItem) –
- modelIndex (QModelIndex) –
Here be docs..
-
sizeHint
(option, idx)¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.LegendSelector.
LegendListView
(parent=None, model=None, contextMenu=None)[source]¶ Bases:
PySide.QtGui.QListView
-
clear
()¶
-
mousePressEvent
(event)¶
-
mouseReleaseEvent
(event)¶
-
setContextMenu
(contextMenu=None)¶
-
setLegendList
(legendList, row=None)¶
-
sigLegendSignal
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.LegendSelector.
LegendModel
(legendList=None, parent=None)[source]¶ Bases:
PySide.QtCore.QAbstractListModel
-
activeRole
= 39¶
-
iconColorRole
= 32¶
-
iconLineWidthRole
= 33¶
-
iconSymbolRole
= 35¶
-
insertLegendList
(row, llist)[source]¶ Parameters: - row (int) – Determines after which row the items are inserted
- llist – Carries the new legend information
-
insertRows
(row, count, modelIndex=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) >)[source]¶
-
legendTypeRole
= 37¶
-
removeRows
(row, count, modelIndex=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) >)[source]¶
-
selectedRole
= 38¶
-
setEditor
(event, editor)[source]¶ Parameters: - event (str) – String that identifies the editor
- editor (QWidget) – Widget used to change data in the underlying model
-
showLineRole
= 34¶
-
showSymbolRole
= 36¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
MaskImageWidget
Module¶
McaROIWidget
Module¶
-
class
PyMca5.PyMcaGui.plotting.McaROIWidget.
McaROITable
(*args, **kw)[source]¶ Bases:
PySide.QtGui.QTableWidget
-
sigMcaROITableSignal
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
ObjectPrintConfigurationDialog
Module¶
PlotWidget
Module¶
-
class
PyMca5.PyMcaGui.plotting.PlotWidget.
PlotWidget
(parent=None, backend=None, legends=False, callback=None, **kw)[source]¶ Bases:
PySide.QtGui.QMainWindow
,PyMca5.PyMcaGraph.Plot.Plot
-
printGraph
(width=None, height=None, xOffset=0.0, yOffset=0.0, units='inches', dpi=None, printer=None, dialog=True, keepAspectRatio=True, **kw)[source]¶
-
sigPlotSignal
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
PlotWindow
Module¶
This window handles plugins and adds a toolbar to the PlotWidget.
Currently the only dependency on PyMca is through the Icons.
-
class
PyMca5.PyMcaGui.plotting.PlotWindow.
PlotWindow
(parent=None, backend=None, plugins=True, newplot=False, control=False, position=False, **kw)[source]¶ Bases:
PyMca5.PyMcaGui.plotting.PlotWidget.PlotWidget
-
DEFAULT_COLORMAP_INDEX
= 2¶
-
DEFAULT_COLORMAP_LOG_FLAG
= False¶
-
sigROISignal
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
ProfileScanWidget
Module¶
PyMcaPrintPreview
Module¶
-
class
PyMca5.PyMcaGui.plotting.PyMcaPrintPreview.
PyMcaPrintPreview
(parent=None, printer=None, name='PyMcaPrintPreview', modal=0, fl=0)[source]¶ Bases:
PyMca5.PyMcaGui.plotting.Q4PyMcaPrintPreview.PyMcaPrintPreview
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
PyMca_Icons
Module¶
-
PyMca5.PyMcaGui.plotting.PyMca_Icons.
ymintozero
= ['16 16 3 1', ' c None', 'X c blue', '. c red', ' ', ' ', ' ', ' ', ' XX ', ' XXX XX ', ' XXX XX XX ', ' XX XXX ', ' XX ', ' XX ', ' X............. ', ' ', ' ', ' ', ' ', ' ']¶ average16=[ “16 16 2 1”, ”. c blue”, ” c None”, ” ”, ” .............. ”, ” ”, ” .. .. ”, ” .. .. ”, ” .. .. ”, ” .. .. ”, ” .. .. ”, ” ... ”, ” .. ”, ” .. ”, ” .. ”, ” .. ”, ” .. ”, ” .. ”, ” ” ]
Q4PyMcaPrintPreview
Module¶
-
class
PyMca5.PyMcaGui.plotting.Q4PyMcaPrintPreview.
GraphicsResizeRectItem
(parent=None, scene=None, keepratio=True)[source]¶ Bases:
PySide.QtGui.QGraphicsRectItem
-
class
PyMca5.PyMcaGui.plotting.Q4PyMcaPrintPreview.
GraphicsSvgItem
[source]¶ Bases:
PySide.QtSvg.QGraphicsSvgItem
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.Q4PyMcaPrintPreview.
GraphicsSvgRectItem
[source]¶ Bases:
PySide.QtGui.QGraphicsRectItem
-
class
PyMca5.PyMcaGui.plotting.Q4PyMcaPrintPreview.
PyMcaPrintPreview
(parent=None, printer=None, name='PyMcaPrintPreview', modal=0, fl=0)[source]¶ Bases:
PySide.QtGui.QDialog
-
addImage
(image, title=None, comment=None, commentPosition=None)[source]¶ add an image item to the print preview scene
-
addPixmap
(pixmap, title=None, comment=None, commentPosition=None)[source]¶ add a pixmap to the print preview scene
-
printer
= None¶ - if printer is None:
printer = qt.QPrinter(qt.QPrinter.HighResolution) printer.setPageSize(qt.QPrinter.A4) printerName = “%s” % printer.printerName() if printerName in [‘id24b2u’]:
#id24 printer very slow in color mode printer.setColorMode(qt.QPrinter.GrayScale)printer.setFullPage(True) if (printer.width() <= 0) or (printer.height() <= 0):
- if QTVERSION < ‘4.2.0’: #this is impossible (no QGraphicsView)
- filename = “PyMCA_print.pdf”
- else:
- filename = “PyMCA_print.ps”
- if sys.platform == ‘win32’:
home = os.getenv(‘USERPROFILE’) try:
l = len(home) directory = os.path.join(home,”My Documents”)- except:
- home = ‘’ directory = ‘’
- if os.path.isdir(‘%s’ % directory):
- directory = os.path.join(directory,”PyMca”)
- else:
- directory = os.path.join(home,”PyMca”)
- if not os.path.exists(‘%s’ % directory):
- os.mkdir(‘%s’ % directory)
finalfile = os.path.join(directory, filename)
- else:
home = os.getenv(‘HOME’) directory = os.path.join(home,”PyMca”) if not os.path.exists(‘%s’ % directory):
os.mkdir(‘%s’ % directory)finalfile = os.path.join(directory, filename)
printer.setOutputFileName(finalfile) printer.setColorMode(qt.QPrinter.Color)
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
RGBCorrelatorGraph
Module¶
-
class
PyMca5.PyMcaGui.plotting.RGBCorrelatorGraph.
MyQLabel
(parent=None, name=None, fl=0, bold=True, color=PySide.QtCore.Qt.GlobalColor.red)[source]¶ Bases:
PySide.QtGui.QLabel
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaGui.plotting.RGBCorrelatorGraph.
RGBCorrelatorGraph
(parent=None, selection=False, aspect=True, colormap=False, imageicons=False, standalonesave=True, standalonezoom=True, profileselection=False, polygon=False)[source]¶ Bases:
PySide.QtGui.QWidget
-
sigProfileSignal
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-