def __init__(self,
xMin=0.0,
xMax=1.0,
yMin=0.0,
yMax=1.0,
xOriginValue=0.5,
yOriginValue=0.5,
xTickInterval=0.1,
yTickInterval=0.1,
labelFont=QFont("Segoe UI", 10),
**kwds):
super(QPlot2D, self).__init__(**kwds)
# create a frame to hold graphics
self._plot_frame = QFrame()
self._plot_layout = QHBoxLayout()
self._plot_layout.addWidget(self._plot_frame)
self.setMinimumSize(100,100)
self.setLayout(self._plot_layout)
# plot parameters
self._xMin = xMin
self._xMax = xMax
self._yMin = yMin
self._yMax = yMax
self._xOriginValue = xOriginValue
self._yOriginValue = yOriginValue
self._xTickInterval = xTickInterval
self._yTickInterval = yTickInterval
self._labelFont = labelFont
# structures to hold plot data
self._plots = {}
self._plot_pens = {}
self._plot_points = {}
self._plot_draw_method = {}
# initialize
self._debug = False
self._set_render_parameters()
# O V E R R I D E M E T H O D S
#===========================================================================
评论列表
文章目录