示例#1
0
    def __init__(self, parent, size=(4.00, 2.48), dpi=150,
                 axis_size=None, axisbg=None,
                 trace_color_callback=None,
                 output_title='plot', **kws):

        self.trace_color_callback = trace_color_callback
        matplotlib.rc('axes', axisbelow=True)
        matplotlib.rc('lines', linewidth=2)
        matplotlib.rc('xtick', labelsize=9, color='k')
        matplotlib.rc('ytick', labelsize=9, color='k')
        matplotlib.rc('legend', fontsize=9)
        matplotlib.rc('grid',  linewidth=0.5, linestyle='-')

        BasePanel.__init__(self, parent,
                           output_title=output_title, **kws)

        self.conf = PlotConfig()
        self.data_range = {}
        self.win_config = None
        self.cursor_callback = None
        self.lasso_callback = None
        self.parent    = parent
        self.figsize = size
        self.dpi     = dpi

        if axis_size is None:  axis_size = [0.16, 0.16, 0.72, 0.75]
        if axisbg is None:     axisbg='#FEFFFE'
        self.axisbg = axisbg
        self.axis_size = axis_size
        self.BuildPanel()
        self.user_limits = {} # [None, None, None, None]
        self.data_range = {}
        self.zoom_lims = []
        self.axes_traces = {}
示例#2
0
    def __init__(self, parent, messenger=None, show_config_popup=True,
                 size=(5.00,4.50), dpi=96, **kwds):

        matplotlib.rc('lines', linewidth=2)
        BasePanel.__init__(self, parent,
                           messenger=messenger,
                           show_config_popup=show_config_popup)

        self.conf = ImageConfig()
        self.win_config = None
        self.cursor_callback = None
        self.figsize = size
        self.dpi     = dpi
示例#3
0
    def __init__(self, parent, messenger=None,
                 size=(6.00,3.70), dpi=96, **kwds):

        BasePanel.__init__(self, parent,  messenger=messenger)

        matplotlib.rc('axes', axisbelow=True)
        matplotlib.rc('lines', linewidth=2)
        matplotlib.rc('xtick',  labelsize=11, color='k')
        matplotlib.rc('ytick',  labelsize=11, color='k')
        matplotlib.rc('grid',  linewidth=0.5, linestyle='-')

        self.conf = PlotConfig()

        self.win_config = None
        self.cursor_callback = None
        self.parent    = parent
        self.figsize = size
        self.dpi     = dpi
示例#4
0
 def __init__(self, parent, messenger=None, data_callback=None,
              size=(4.50,4.00), dpi=100,
              output_title='Image', lasso_callback=None, **kws):
     matplotlib.rc('lines', linewidth=2)
     BasePanel.__init__(self, parent,
                        output_title=output_title,
                        messenger=messenger, **kws)
     self.data_callback = data_callback
     self.lasso_callback = lasso_callback
     self.conf = ImageConfig()
     self.win_config = None
     self.cursor_callback = None
     self.figsize = size
     self.dpi     = dpi
     self.xlab    = 'X'
     self.ylab    = 'Y'
     self.xdata   = None
     self.ydata   = None
     self.user_limits = {}
     self.BuildPanel()