コード例 #1
0
ファイル: continents.py プロジェクト: ptbremer/uvcdat-devel
    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
コード例 #2
0
ファイル: continents.py プロジェクト: AZed/uvcdat
 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
コード例 #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
コード例 #4
0
ファイル: continents.py プロジェクト: ptbremer/uvcdat-devel
 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
コード例 #5
0
ファイル: continents.py プロジェクト: AZed/uvcdat
 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
コード例 #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
コード例 #7
0
ファイル: histograms.py プロジェクト: AZed/uvcdat
 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
コード例 #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
コード例 #9
0
ファイル: histograms.py プロジェクト: chaosphere2112/uvcdat
 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
コード例 #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
コード例 #11
0
ファイル: histograms.py プロジェクト: AZed/uvcdat
 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
コード例 #12
0
ファイル: histograms.py プロジェクト: chaosphere2112/uvcdat
 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