sciplot.ui.models package

Submodules

sciplot.ui.models.abstract module

Abstract ModelViewDelegate for MPL objects

Created on Thu Jul 7 10:01:23 2016

@author: chc

class sciplot.ui.models.abstract.AbstractEditDelegateMpl(parent: QObject = None)[source]

Bases: PyQt5.QtWidgets.QStyledItemDelegate

createEditor(parent, option, index)[source]
setEditorData(self, QWidget, QModelIndex)[source]
setModelData(self, QWidget, QAbstractItemModel, QModelIndex)[source]
class sciplot.ui.models.abstract.AbstractTableModelMpl(parent: QObject = None)[source]

Bases: PyQt5.QtCore.QAbstractTableModel, PyQt5.QtCore.QObject

columnCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
data(index, role=0)[source]
deleteData(index)[source]
doubleClickCheck(index)[source]
flags(index)[source]
headerData(col, orientation, role)[source]
rowCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
setData(index, value, role=2)[source]

sciplot.ui.models.bars module

ModelViewDelegate for an MPL Line object

Created on Thu Jul 7 10:01:23 2016

@author: chc

class sciplot.ui.models.bars.EditDelegateBars(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractEditDelegateMpl

createEditor(parent, option, index)[source]
setEditorData(self, QWidget, QModelIndex)[source]
setModelData(self, QWidget, QAbstractItemModel, QModelIndex)[source]
class sciplot.ui.models.bars.TableModelBars(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractTableModelMpl

_COL_ALPHA = 1
_COL_DELETE = 6
_COL_EDGECOLOR = 2
_COL_FACECOLOR = 0
_COL_LABEL = 5
_COL_LINEWIDTH = 3
_COL_WIDTH_FACTOR = 4
_HEADERS = ['Facecolor', 'Alpha', 'Edgecolor', 'Line Width', 'Width Factor', 'Label', 'Delete']
changeColor(index)[source]
columnCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
data(index, role=0)[source]
dataDeleted
deleteData(index)[source]
doubleClickCheck(index)[source]
flags(index)[source]
headerData(col, orientation, role)[source]
rowCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
setData(index, value, role=2)[source]

sciplot.ui.models.fillbetween module

This entire model is for fill-between type of plots, which actually uses polycollections. In the future, this may become a polycollections model, but for now K.I.S.S.

Created on Thu Jul 7 15:25:08 2016

@author: chc

class sciplot.ui.models.fillbetween.EditDelegateFillBetween(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractEditDelegateMpl

createEditor(parent, option, index)[source]
setEditorData(self, QWidget, QModelIndex)[source]
setModelData(self, QWidget, QAbstractItemModel, QModelIndex)[source]
class sciplot.ui.models.fillbetween.TableModelFillBetween(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractTableModelMpl

_COL_ALPHA = 1
_COL_DELETE = 5
_COL_EDGECOLOR = 2
_COL_FACECOLOR = 0
_COL_LABEL = 4
_COL_LINEWIDTH = 3
_HEADERS = ['Facecolor', 'Alpha', 'Edgecolor', 'LineWidth', 'Label', 'Delete']
changeColor(index)[source]
columnCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]

Return col count of table view

data(index, role=0)[source]
dataDeleted
deleteData(index)[source]
doubleClickCheck(index)[source]

Double-clicking certain columns has special effects. In this case, the color change columns and the delete column

flags(index)[source]
headerData(col, orientation, role)[source]

Basic horizontal header with no special role

rowCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]

Return row count of table view

setData(index, value, role=2)[source]

sciplot.ui.models.images module

Created on Fri Jul 8 14:11:40 2016

@author: chc

class sciplot.ui.models.images.EditDelegateImages(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractEditDelegateMpl

createEditor(parent, option, index)[source]
setEditorData(self, QWidget, QModelIndex)[source]
setModelData(self, QWidget, QAbstractItemModel, QModelIndex)[source]
class sciplot.ui.models.images.TableModelImages(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractTableModelMpl

_COL_ALPHA = 1
_COL_CBAR = 5
_COL_CLIM_HIGH = 3
_COL_CLIM_LOW = 2
_COL_CMAP = 0
_COL_DELETE = 6
_COL_LABEL = 4
_HEADERS = ['Cmap', 'Alpha', 'Clim Low', 'Clim High', 'Label', 'Colorbar', 'Delete']
columnCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
data(index, role=0)[source]
dataDeleted
deleteData(index)[source]
doubleClickCheck(index)[source]
flags(index)[source]
headerData(col, orientation, role)[source]
rowCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
setData(index, value, role=2)[source]

sciplot.ui.models.lines module

ModelViewDelegate for an MPL Line object

Created on Thu Jul 7 10:01:23 2016

@author: chc

class sciplot.ui.models.lines.EditDelegateLines(parent: QObject = None)[source]

Bases: sciplot.ui.models.abstract.AbstractEditDelegateMpl

createEditor(parent, option, index)[source]
setEditorData(self, QWidget, QModelIndex)[source]
setModelData(self, QWidget, QAbstractItemModel, QModelIndex)[source]
class sciplot.ui.models.lines.TableModelLines(parent=None)[source]

Bases: sciplot.ui.models.abstract.AbstractTableModelMpl

_COL_ALPHA = 1
_COL_COLOR = 0
_COL_DELETE = 7
_COL_LABEL = 6
_COL_LINESTYLE = 3
_COL_LINEWIDTH = 2
_COL_MARKER = 4
_COL_MARKERSIZE = 5
_HEADERS = ['Color', 'Alpha', 'LineWidth', 'LineStyle', 'Marker', 'Marker Size', 'Label', 'Delete']
changeColor(index)[source]
columnCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
data(index, role=0)[source]
dataDeleted
deleteData(index)[source]
doubleClickCheck(index)[source]
flags(index)[source]
headerData(col, orientation, role)[source]
rowCount(parent=<PyQt5.QtCore.QModelIndex object>)[source]
setData(index, value, role=2)[source]

Module contents