QPlot2D.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:KerbalPie 作者: Vivero 项目源码 文件源码
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 
    #===========================================================================
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号