Example #1
0
    def __init__(self, name=None, source='default', x=None, template=None):
        self.g_name = 'Guc'
        self.g_type = 'userconts'
        VCSaddon.__init__(self, name, source, x, template)
        if source == 'default':
            self.datadir = os.path.join(os.environ['HOME'], "PCMDI_GRAPHICS")
            self.types = [
                1,
            ]
            self.colors = [
                242,
            ]
            self.lines = [
                'solid',
            ]
            self.widths = [
                1,
            ]
            self.sources = [
                0,
            ]
        else:
            gm = vcsaddons.gms[self.g_name][source]
            self.datadir = gm.datadir
            self.types = gm.types
            self.colors = gm.colors
            self.lines = gm.line
            self.widths = gm.widths
            self.sources = gm.sources

        try:
            import bz2
            self.HAVE_BZ2 = True
        except:
            self.HAVE_BZ2 = False
Example #2
0
 def __init__(self,name=None,source='default',x=None,template = None):
     self.g_name='Guc'
     self.g_type='userconts'
     VCSaddon.__init__(self,name,source,x,template)
     if source == 'default':
         self.datadir=os.path.join(os.environ['HOME'],"PCMDI_GRAPHICS")
         self.types = [1,]
         self.colors = [242,]
         self.lines=['solid',]
         self.widths=[1,]
         self.sources = [0,]
     else:
         gm = vcsaddons.gms[self.g_name][source]
         self.datadir= gm.datadir
         self.types = gm.types
         self.colors = gm.colors
         self.lines = gm.line
         self.widths = gm.widths
         self.sources = gm.sources
         
     try:
         import bz2
         self.HAVE_BZ2=True
     except:
         self.HAVE_BZ2=False
Example #3
0
 def __init__(self, name=None, source='default', x=None, template=None):
     self.g_name = 'Ghg'
     self.g_type = 'histogram'
     VCSaddon.__init__(self, name, source, x, template)
     if source == 'default':
         self.fillareastyles = [
             'solid',
         ]
         self.fillareaindices = [
             1,
         ]
         self.fillareacolors = [
             252,
         ]
         self.line = [
             'solid',
         ]
         self.linewidth = [
             1.0,
         ]
         self.linecolors = [
             241,
         ]
     else:
         gm = vcsaddons.gms[self.g_name][source]
         self.fillareastyle = gm.fillareastyles
         self.fillareaindices = gm.fillareaindices
         self.fillareacolors = gm.fillareacolors
         self.line = gm.line
         self.linewidth = gm.linewidth
         self.linecolors = gm.linecolors
Example #4
0
 def list(self):
     print '---------- UserContinents (Guc) member (attribute) listings ----------'
     print 'Canvas Mode = ', self.x.mode
     VCSaddon.list(self)
     print 'types =', self.types
     print 'colors =', self.colors
     print 'widths =', self.widths
     print 'lines =', self.lines
     print 'datadir =', self.datadir
     print 'sources =', self.sources
Example #5
0
 def list(self):
     print '---------- UserContinents (Guc) member (attribute) listings ----------'
     print 'Canvas Mode = ',self.x.mode
     VCSaddon.list(self)
     print 'types =',self.types
     print 'colors =',self.colors
     print 'widths =',self.widths
     print 'lines =',self.lines
     print 'datadir =',self.datadir
     print 'sources =',self.sources
Example #6
0
 def list(self):
     print '---------- Yxvsx Fill (Gyf) member (attribute) listings ----------'
     print 'Canvas Mode = ',self.x.mode
     VCSaddon.list(self)
     print 'fillareastyle = ', self.fillareastyle
     print 'fillareaindex = ', self.fillareaindex
     print 'fillareacolor = ', self.fillareacolor
     print 'line = ', self.line
     print 'linewidth = ', self.linewidth
     print 'linecolor = ', self.linecolor
Example #7
0
 def list(self):
     print '---------- Histogram (Ghg) member (attribute) listings ----------'
     print 'Canvas Mode = ',self.x.mode
     VCSaddon.list(self)
     print 'fillareastyles = ', self.fillareastyles
     print 'fillareaindices = ', self.fillareaindices
     print 'fillareacolors = ', self.fillareacolors
     print 'line = ', self.line
     print 'linewidth = ', self.linewidth
     print 'linecolors = ', self.linecolors
Example #8
0
 def list(self):
     print '---------- Histogram (Ghg) member (attribute) listings ----------'
     print 'Canvas Mode = ', self.x.mode
     VCSaddon.list(self)
     print 'fillareastyles = ', self.fillareastyles
     print 'fillareaindices = ', self.fillareaindices
     print 'fillareacolors = ', self.fillareacolors
     print 'line = ', self.line
     print 'linewidth = ', self.linewidth
     print 'linecolors = ', self.linecolors
Example #9
0
 def list(self):
     print '---------- Histogram (Ghg) member (attribute) listings ----------'  # pragma: no cover
     print 'Canvas Mode = ', self.x.mode  # pragma: no cover
     VCSaddon.list(self)  # pragma: no cover
     print 'fillareastyles = ', self.fillareastyles  # pragma: no cover
     print 'fillareaindices = ', self.fillareaindices  # pragma: no cover
     print 'fillareacolors = ', self.fillareacolors  # pragma: no cover
     print 'line = ', self.line  # pragma: no cover
     print 'linewidth = ', self.linewidth  # pragma: no cover
     print 'linecolors = ', self.linecolors  # pragma: no cover
     print 'bins = ', self.bins  # pragma: no cover
Example #10
0
 def __init__(self,name=None,source='default',x=None,template = None):
     self.g_name='Gyf'
     VCSaddon.__init__(self,name,source,x,template)
     self.g_nslabs=2
     if source == 'default':
         self.fillareastyle = 'solid'
         self.fillareaindex = 1
         self.fillareacolor = 252
         self.line = 'solid'
         self.linewidth=1.0
         self.linecolor=241
     else:
         gm = vcsaddons.gms[self.g_name][source]
         self.fillareastyle= gm.fillareastyle
         self.fillareaindex = gm.fillareaindex
         self.fillareacolor = gm.fillareacolor
         self.line = gm.line
         self.linewidth = gm.linewidth
         self.linecolor = gm.linecolor
Example #11
0
 def __init__(self,name=None,source='default',x=None,template = None):
     self.g_name='Ghg'
     self.g_type='histogram'
     VCSaddon.__init__(self,name,source,x,template)
     if source == 'default':
         self.fillareastyles = ['solid',]
         self.fillareaindices = [1,]
         self.fillareacolors = [252,]
         self.line = ['solid',]
         self.linewidth=[1.0,]
         self.linecolors=[241,]
     else:
         gm = vcsaddons.gms[self.g_name][source]
         self.fillareastyle= gm.fillareastyles
         self.fillareaindices = gm.fillareaindices
         self.fillareacolors = gm.fillareacolors
         self.line = gm.line
         self.linewidth = gm.linewidth
         self.linecolors = gm.linecolors
Example #12
0
 def __init__(self, name=None, source='default', x=None, template=None):
     self.g_name = 'Ghg'
     self.g_type = 'histogram'
     VCSaddon.__init__(self, name, source, x, template)
     if source == 'default':
         self.line = []
         self.linewidth = []
         self.linecolors = []
         self.fillareastyles = []
         self.fillareaindices = []
         self.fillareacolors = []
         self.bins = []
     else:
         if isinstance(source, (str, unicode)):
             gm = vcsaddons.gms[self.g_type][source]
         else:
             gm = source
         self.line = gm.line
         self.linewidth = gm.linewidth
         self.linecolors = gm.linecolors
         self.fillareastyles = gm.fillareastyles
         self.fillareaindices = gm.fillareaindices
         self.fillareacolors = gm.fillareacolors
         self.bins = gm.bins