Esempio n. 1
0
    def __init__(self):
        Node.__init__(self)

        #self.get_input('axes')

        self.add_input(name='arrowstyle',
                       interface=IEnumStr(tools.arrowstyles.keys()),
                       value='simple')
        self.add_input(name='connectionstyle',
                       interface=IEnumStr(tools.connectionstyles.keys()),
                       value='arc3')
        self.add_input(name='relpos', interface=ITuple, value=(0.5, 0.5))
        self.add_input(name='patchA', interface=IDict, value=None)
        self.add_input(name='patchB', interface=IDict, value=None)
        self.add_input(name='shrinkA', interface=IDict, value=None)
        self.add_input(name='shrinkB', interface=IDict, value=None)
        self.add_input(name='mutation_scale', interface=IFloat, value=1)
        self.add_input(name='mutation_aspect', interface=IFloat, value=1)
        self.add_input(name='pathPatch', interface=IDict, value=None)
        self.add_input(name='ec',
                       interface=IEnumStr(tools.linestyles.keys()),
                       value='solid')
        self.add_input(name='kwargs', interface=IDict, value={})
        #todo for connection style, connectionstyle="angle,angleA=0,angleB=-90,rad=10"
        #todo for arrowstyle:head_length=0.4,head_width=0.2 tail_width=0.3,shrink_factor=0.5
        self.add_output(name='dict', interface=IDict, value={})
 def __init__(self):
     import numpy as np
     Node.__init__(self)
     self.add_input(name='t', interface=ISequence, value=[])
     self.add_input(name='A', interface=IFloat, value=1.)
     self.add_input(name='w', interface=IFloat, value=1.)
     self.add_output(name='output')
Esempio n. 3
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='x', interface=ISequence, value=[])
     self.add_input(name='y', interface=ISequence, value=[])
     self.add_input(name='closed', interface=IBool, value=True)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return', value=None)
Esempio n. 4
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name="shadow", interface=IBool, value=False)
        self.add_input(name="location",
                       interface=IEnumStr(tools.locations.keys()),
                       value=0)
        self.add_input(name="numpoints", interface=IInt, value=2)
        self.add_input(name="markerscale",
                       interface=IFloat(0.1, 10, 0.1),
                       value=1)
        self.add_input(name="fancybox", interface=IBool, value=True)
        self.add_input(name="ncol", interface=IInt(1, 10), value=1)
        self.add_input(name="mode",
                       interface=IEnumStr({
                           'None': 'None',
                           'Expanded': 'exapanded'
                       }),
                       value=None)
        self.add_input(name="title", interface=IStr, value=None)
        #rodo scatterpoints
        #borderpad          the fractional whitespace inside the legend border
        #    labelspacing       the vertical space between the legend entries
        #    handlelength       the length of the legend handles
        #    handletextpad      the pad between the legend handle and text
        #    borderaxespad      the pad between the axes and legend border
        #    columnspacing      the spacing between columns
        #borderaxespad
        self.add_input(name="prop", interface=IDict, value={})
        #p = pylab.matplotlib.font_manager.FontProperties(size=26)

        self.add_output(name="kwds", interface=IDict, value={})
    def __init__(self):
        Node.__init__(self)

        self.add_input(name='boxstyle',interface=IEnumStr(tools.boxstyles.keys()), value='round')
        self.add_input(name='fc',interface=IFloat(0,1,0.1), value=0.8)
        self.add_input(name='pad',interface=IFloat(0,1,0.1), value=0.3)
        self.add_output(name='output', interface=IDict)
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name="axes")

        self.add_output(name='axes')
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name="shadow", interface=IBool, value=False)
        self.add_input(name="location", interface=IEnumStr(tools.locations.keys()), value=0)
        self.add_input(name="numpoints", interface=IInt, value=2)
        self.add_input(name="markerscale", interface=IFloat(0.1,10,0.1), value=1)
        self.add_input(name="fancybox", interface=IBool, value=True)
        self.add_input(name="ncol", interface=IInt(1,10), value=1)
        self.add_input(name="mode", interface=IEnumStr({'None':'None','Expanded':'exapanded'}), value=None)
        self.add_input(name="title", interface=IStr, value=None)
        #rodo scatterpoints
        #borderpad          the fractional whitespace inside the legend border
        #    labelspacing       the vertical space between the legend entries
        #    handlelength       the length of the legend handles
        #    handletextpad      the pad between the legend handle and text
        #    borderaxespad      the pad between the axes and legend border
        #    columnspacing      the spacing between columns
        #borderaxespad
        self.add_input(name="prop", interface=IDict, value={})
        #p = pylab.matplotlib.font_manager.FontProperties(size=26)

        self.add_output(name="kwds", interface=IDict, value={})
    def __init__(self):
        Node.__init__(self)
        self.add_input(name='alpha',    interface=IFloat(0,1,0.1), value=1)
        self.add_input(name='color',    interface=IEnumStr(tools.colors.keys()), value='k')
        self.add_input(name='fontproperties', interface=IDict, value={'family':'sans-serif',
            'size':12, 'stretch':'normal', 'style':'normal', 'weight':'normal',
            'variant':'normal'})
        self.add_input(name='horizontalalignment', interface=IEnumStr(tools.horizontalalignment.keys()), value='left')
        self.add_input(name='rotation', interface=IFloat(-180,180,10), value=0)
        self.add_input(name='verticalalignment', interface=IEnumStr(tools.verticalalignment.keys()), value='baseline')
        self.add_input(name='kwargs',   interface=IDict, value = {
            #'agg_filter': None,
#            'animated': False,
#            'axes': None,
#            'clip_box': None,
#            'clip_on': True,
#            'clip_path': None,
#            'contains': None,
#            'figure': None,
#            'gid': None,
#            'path_effects': None,
#            'picker': None,
#            'rasterized': None,
#            'rotation_mode': None,
#            'snap': None,
#            'text': '',
#            'transform': None,
            'url': None,
#            'visible': True,
            'zorder': 3})

        self.add_output(name='kwds', interface=IDict, value={})
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='x', interface=ISequence, value=[])
     self.add_input(name='y', interface=ISequence, value=[])
     self.add_input(name='closed', interface=IBool, value=True)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return',value=None)
Esempio n. 10
0
 def __init__(self):
     import numpy as np
     Node.__init__(self)
     self.add_input(name='t', interface=ISequence, value=[])
     self.add_input(name='A', interface=IFloat, value=1.)
     self.add_input(name='w', interface=IFloat, value=1.)
     self.add_output(name='output')
Esempio n. 11
0
 def __init__(self):
     import numpy as np
     Node.__init__(self)
     delta = 0.025
     self.add_input(name='X', interface=ISequence, value=np.arange(-3, 3, delta))
     self.add_input(name='Y', interface=ISequence, value=np.arange(-3, 3, delta))
     self.add_output(name='Z', interface=ISequence, value=[])
Esempio n. 12
0
    def __init__(self):
        from matplotlib.pyplot import rcParams
        Node.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='fname', interface=IStr, value=None)
        self.add_input(name='transparent', interface=IBool, value=False)
        self.add_input(name='dpi',
                       interface=IInt(40, 200, 1),
                       value=rcParams['figure.dpi'])
        self.add_input(name='facecolor',
                       interface=IEnumStr(tools.colors.keys()),
                       value='white')
        self.add_input(name='edgecolor',
                       interface=IEnumStr(tools.colors.keys()),
                       value='w')
        self.add_input(name='orientation',
                       interface=IEnumStr(tools.orientation_fig.keys()),
                       value='portrait')
        self.add_input(name='papertype',
                       interface=IEnumStr(tools.papertypes.keys()),
                       value=None)
        self.add_input(name='format',
                       interface=IEnumStr(tools.extensions.keys()),
                       value='png')
        self.add_input(name='kwargs', interface=IDict, value={})
Esempio n. 13
0
 def __init__(self):
     self.daxis = {'in': 'in', 'out': 'out', 'both': 'both'}
     self.ddirection = {'in': 'in', 'out': 'out'}
     Node.__init__(self)
     CustomizeAxes.__init__(self)
     self.add_input(name='axes')
     self.add_input(name='axis',
                    interface=IEnumStr(self.daxis.keys()),
                    value='both')
     self.add_input(name='reset', interface=IBool, value=False)
     self.add_input(name='direction',
                    interface=IEnumStr(self.ddirection.keys()),
                    value='in')
     self.add_input(name='length', interface=IInt, value=4)
     self.add_input(name='width', interface=IInt, value=1)
     self.add_input(name='color',
                    interface=IEnumStr(tools.colors.keys()),
                    value='black')
     self.add_input(name='pad', interface=IInt, value=1)
     self.add_input(name='labelsize', interface=IInt, value=12)
     self.add_input(name='labelcolor',
                    interface=IEnumStr(tools.colors.keys()),
                    value='black')
     self.add_input(name='zorder', interface=IInt, value=0)
     self.add_input(name='bottom', interface=IBool, value=False)
     self.add_input(name='top', interface=IBool, value=False)
     self.add_input(name='left', interface=IBool, value=False)
     self.add_input(name='right', interface=IBool, value=False)
     self.add_input(name='labelbottom', interface=IBool, value=True)
     self.add_input(name='labeltop', interface=IBool, value=False)
     self.add_input(name='labelleft', interface=IBool, value=True)
     self.add_input(name='labelright', interface=IBool, value=False)
Esempio n. 14
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='x', interface=IFloat, value=0)
     self.add_input(name='y', interface=IFloat, value=0)
     self.add_input(name='radius', interface=IFloat, value=5)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return', value=None)
Esempio n. 15
0
    def __init__(self):
        Node.__init__(self)

        self.add_input(name='axes')

        self.add_input(name='text', interface=IStr, value=None)
        self.add_input(name='xy', interface=ITuple, value=(0, 0))
        self.add_input(name='xytext', interface=ITuple, value=(0, 0))
        self.add_input(name='xycoords',
                       interface=IEnumStr(tools.xycoords.keys()),
                       value='data')
        self.add_input(name='textcoords',
                       interface=IEnumStr(tools.xycoords.keys()),
                       value='data')
        self.add_input(name='arrowprops',
                       interface=IDict,
                       value={
                           'arrowstyle': '->',
                           'connectionstyle': 'arc3'
                       })
        self.add_input(name='bbox', interface=IDict, value=None)
        self.add_input(name='kwargs(text properties)',
                       interface=IDict,
                       value={})
        self.add_output(name='output')
Esempio n. 16
0
    def __init__(self):
        Node.__init__(self)
        #[left, bottom, width,      height]
        self.add_input(name='input')
        self.add_input(name='clear', interface=IBool, value=True)
        self.add_input(name='left', interface=IFloat(0, 1, 0.01), value=0.12)
        self.add_input(name='bottom', interface=IFloat(0, 1, 0.01), value=0.12)
        self.add_input(name='width', interface=IFloat(0, 1, 0.01), value=0.78)
        self.add_input(name='height', interface=IFloat(0, 1, 0.01), value=0.78)
        self.add_input(name='axisbg',
                       interface=IEnumStr(tools.colors.keys()),
                       value='white')
        self.add_input(name='frameon', interface=IBool, value=True)
        self.add_input(name='polar', interface=IBool, value=False)
        self.add_input(name='xscale',
                       interface=IEnumStr(tools.scale.keys()),
                       value='linear')
        self.add_input(name='yscale',
                       interface=IEnumStr(tools.scale.keys()),
                       value='linear')
        self.add_input(name='xticks',
                       interface=IEnumStr(tools.ticks.keys()),
                       value='auto')
        self.add_input(name='yticks',
                       interface=IEnumStr(tools.ticks.keys()),
                       value='auto')
        self.add_input(name='kwargs', interface=IDict, value={})
        self.add_output(name='axes', interface=IDict, value={})

        self.axe = None
Esempio n. 17
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='x', interface=IFloat, value=0)
     self.add_input(name='y', interface=IFloat, value=0)
     self.add_input(name='radius', interface=IFloat, value=5)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return',value=None)
Esempio n. 18
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name="axes")

        self.add_output(name='axes')
Esempio n. 19
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='family',
                    interface=IEnumStr(tools.families.keys()),
                    value='serif')
     self.add_input(name='style',
                    interface=IEnumStr(tools.styles.keys()),
                    value='normal')
     self.add_input(name='variant',
                    interface=IEnumStr(tools.variants.keys()),
                    value='normal')
     self.add_input(name='weight',
                    interface=IEnumStr(tools.weights.keys()),
                    value='normal')
     self.add_input(name='stretch',
                    interface=IEnumStr(tools.streches.keys()),
                    value='normal')
     self.add_input(name='size',
                    interface=IEnumStr(tools.sizes.keys()),
                    value='medium')
     self.add_input(name='fname', interface=IStr, value=None)
     self.add_input(name='kwargs', interface=IDict, value={})
     #self.add_input(name='_init', _init=None)
     #todo style, variant and strethc do not seem to work
     self.add_output(name='kwds', interface=IDict, value={})
    def __init__(self):

        Node.__init__(self)

        funs = self.distr_func.keys()
        funs.sort()
        self.add_input(name="Type", interface=IEnumStr(funs), value=funs[0])
        self.add_output(name="Distribution", interface=None)
Esempio n. 21
0
    def __init__(self):

        Node.__init__(self)

        funs = self.distr_func.keys()
        funs.sort()
        self.add_input(name="Type", interface=IEnumStr(funs), value=funs[0])
        self.add_output(name="Distribution", interface=None)
Esempio n. 22
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='name', interface=IStr, value='internode')
     self.add_input(name='cambial_fraction', interface=IFloat, value=0.008)
     self.add_input(name='maturation', interface=IFloat, value=10)
     self.add_input(name='store_data', interface=IBool, value=False)
     self.add_output(name='section_name', interface=IStr, value=None)
     self.add_output(name='options', interface=IDict, value={})
Esempio n. 23
0
 def __init__(self):
     Node.__init__(self)
     CustomizeAxes.__init__(self)
     self.add_input(name='axes')
     self.add_input(name='ymin', interface=IFloat, value=None )
     self.add_input(name='ymax', interface=IFloat, value=None )
     self.add_input(name='kwargs', interface=IDict, value={})
     self.add_output(name='axes')
Esempio n. 24
0
    def __init__(self):
        Node.__init__(self)

        self.typedict = dict(zip(self.codename, self.typecodes))
        self.add_input(name='typecode', interface=IEnumStr(self.codename), 
                       value='signed integer (4)')
        self.add_input(name='values', interface=ISequence)
        self.add_output(name='array', interface=ISequence)
Esempio n. 25
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='colormap',
                    interface=IEnumStr(tools.cmaps.keys()),
                    value='jet')
     self.add_input(name='show', interface=IBool, value=False)
     self.add_input(name='showall', interface=IBool, value=False)
     self.add_output(name='output')
Esempio n. 26
0
 def __init__(self):
     Node.__init__(self)
     CustomizeAxes.__init__(self)
     self.add_input(name='axes')
     self.add_input(name='ymin', interface=IFloat, value=None)
     self.add_input(name='ymax', interface=IFloat, value=None)
     self.add_input(name='kwargs', interface=IDict, value={})
     self.add_output(name='axes')
Esempio n. 27
0
    def __init__(self):
        Node.__init__(self)

        self.typedict = dict(zip(self.codename, self.typecodes))
        self.add_input(name='typecode',
                       interface=IEnumStr(self.codename),
                       value='signed integer (4)')
        self.add_input(name='values', interface=ISequence)
        self.add_output(name='array', interface=ISequence)
Esempio n. 28
0
    def __init__(self):
        Node.__init__(self)

        self.add_input(name='boxstyle',
                       interface=IEnumStr(tools.boxstyles.keys()),
                       value='round')
        self.add_input(name='fc', interface=IFloat(0, 1, 0.1), value=0.8)
        self.add_input(name='pad', interface=IFloat(0, 1, 0.1), value=0.3)
        self.add_output(name='output', interface=IDict)
Esempio n. 29
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='width', interface=IFloat(0,100,0.1), value=4)
     #figure, xytip and xybase are not needed
     self.add_input(name='headwidth', interface=IFloat(0,100,0.1), value=12)
     self.add_input(name='frac', interface=IFloat(0,1,0.05), value=0.1)
     self.add_input(name='alpha', interface=IFloat(0,1,0.05), value=1)
     self.add_input(name='color', interface=IEnumStr(tools.colors.keys()), value='blue')
     self.add_input(name='kwargs', interface=IDict, value={})
     self.add_output(name='output', interface=IDict, value = {})
Esempio n. 30
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='x', interface=IFloat, value=0)
     self.add_input(name='y', interface=IFloat, value=0)
     self.add_input(name='r', interface=IFloat, value=0)
     self.add_input(name='theta1', interface=IFloat, value=0)
     self.add_input(name='theta2', interface=IFloat, value=0)
     self.add_input(name='width', interface=IFloat(0.01,1,0.01), value=None)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return',value=None)
    def __init__(self):

        Node.__init__(self)

        funs = self.distr_func.keys()
        funs.sort()
        self.add_input(name="Type", interface=IEnumStr(funs), value=funs[0])
        self.add_input(name="Cluster number", interface=IInt(min=1), value=2)
        self.add_input(name="Cluster radius", interface=IFloat(0.01, 1, 0.01),
            value=0.2)
        self.add_output(name="Distribution", interface=None)
Esempio n. 32
0
    def __init__(self):
        Node.__init__(self)
        self.add_input(name='name', interface=IStr, value='tropism')
        self.add_input(name='tropism', interface=IBool, value=True)
        self.add_input(name='z-tropism', interface=IFloat, value=-1)
        self.add_input(name='elasticity',
                       interface=IFloat(0, 1, 0.01),
                       value=0.05)

        self.add_output(name='section_name', interface=IStr, value=None)
        self.add_output(name='options', interface=IDict, value={})
Esempio n. 33
0
    def __init__(self):
        Node.__init__(self)
        from openalea.stocatree.fruit import config_options as fruit_options

        self.add_input(name="flower_duration", interface = IInt, value=fruit_options['flower_duration'])
        self.add_input(name="max_relative_growth_rate", interface = IFloat, value=fruit_options['max_relative_growth_rate'])
        self.add_input(name="lost_time", interface = IInt, value=fruit_options['lost_time'])
        self.add_input(name="max_age", interface = IInt, value=fruit_options['max_age'])
        self.add_input(name="probability", interface = IFloat, value=fruit_options['probability'])
        self.add_input(name="max_absolute_growth_rate", interface = IFloat, value=fruit_options['max_absolute_growth_rate'])
        self.add_output(name="result")
Esempio n. 34
0
 def __init__(self):
     Node.__init__(self)
     from openalea.stocatree.leaf import leaf_options as options
     self.add_input(name="fall_probability", interface = IFloat, value=options['fall_probability'])
     self.add_input(name="maturation", interface = IInt, value=12)
     self.add_input(name="mass_per_area", interface = IFloat, value=0.220)
     self.add_input(name="max_area", interface = IFloat, value=0.0030)
     self.add_input(name="min_final_area", interface = IFloat, value=0.0020)
     self.add_input(name="petiole_radius", interface = IFloat, value=0.0006)
     self.add_input(name="preformed_leaves", interface = IInt, value=8)
     self.add_output(name="result")
Esempio n. 35
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='name', interface=IStr, value='apex')
     self.add_input(name='demand',
                    interface=IFloat(0, 1, 0.01),
                    value=1. / 3.)
     self.add_input(name='plastochron', interface=IFloat, value=3.)
     self.add_input(name='store_data', interface=IBool, value=True)
     self.add_input(name='growth_threshold', interface=IFloat, value=0.2)
     self.add_output(name='section_name', interface=IStr, value=None)
     self.add_output(name='options', interface=IDict, value={})
Esempio n. 36
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='locs', interface=ISequence, value=[])
        self.add_input(name='labels', interface=ISequence, value=[])
        self.add_input(name='rotation', interface=IFloat, value=0)
        self.add_input(name='kwargs(text properties)', interface=IDict, value={})

        self.add_output(name='axes')
Esempio n. 37
0
 def __init__(self):
     import numpy as np
     Node.__init__(self)
     delta = 0.025
     self.add_input(name='X',
                    interface=ISequence,
                    value=np.arange(-3, 3, delta))
     self.add_input(name='Y',
                    interface=ISequence,
                    value=np.arange(-3, 3, delta))
     self.add_output(name='Z', interface=ISequence, value=[])
Esempio n. 38
0
 def __init__(self):
     from matplotlib.patches import Ellipse
     self.__doc__ += Ellipse.__init__.__doc__
     Node.__init__(self)
     self.add_input(name='x', interface=IFloat, value=0)
     self.add_input(name='y', interface=IFloat, value=0)
     self.add_input(name='width', interface=IFloat, value=1)
     self.add_input(name='height', interface=IFloat, value=1)
     self.add_input(name='angle', interface=IFloat, value=0)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return', value=None)
Esempio n. 39
0
 def __init__(self):
     from matplotlib.patches import Ellipse
     self.__doc__+=Ellipse.__init__.__doc__
     Node.__init__(self)
     self.add_input(name='x', interface=IFloat, value=0)
     self.add_input(name='y', interface=IFloat, value=0)
     self.add_input(name='width', interface=IFloat, value=1)
     self.add_input(name='height', interface=IFloat, value=1)
     self.add_input(name='angle', interface=IFloat, value=0)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return',value=None)
Esempio n. 40
0
    def __init__(self):
        from matplotlib import font_manager
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name="axes")
        self.add_input(name="text", interface=IStr, value=None)
        self.add_input(name="fontsize", interface=IFloat, value=12)
        self.add_input(name="color", interface=IEnumStr(tools.colors.keys()), value='black')
        self.add_input(name='kwargs', interface=IDict, value={})

        self.add_output(name='axes')
Esempio n. 41
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='x', interface=IFloat, value=0)
     self.add_input(name='y', interface=IFloat, value=0)
     self.add_input(name='r', interface=IFloat, value=0)
     self.add_input(name='theta1', interface=IFloat, value=0)
     self.add_input(name='theta2', interface=IFloat, value=0)
     self.add_input(name='width',
                    interface=IFloat(0.01, 1, 0.01),
                    value=None)
     self.add_input(name='patch', interface=IDict, value={})
     self.add_output(name='return', value=None)
Esempio n. 42
0
    def __init__(self):

        Node.__init__(self)

        funs = self.distr_func.keys()
        funs.sort()
        self.add_input(name="Type", interface=IEnumStr(funs), value=funs[0])
        self.add_input(name="Cluster number", interface=IInt(min=1), value=2)
        self.add_input(name="Cluster radius",
                       interface=IFloat(0.01, 1, 0.01),
                       value=0.2)
        self.add_output(name="Distribution", interface=None)
Esempio n. 43
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='locs', interface=ISequence, value=[])
        self.add_input(name='labels', interface=ISequence, value=[])
        self.add_input(name='rotation', interface=IFloat, value=0)
        self.add_input(name='kwargs(text properties)',
                       interface=IDict,
                       value={})

        self.add_output(name='axes')
Esempio n. 44
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='x', interface=IFloat, value=0.5)
        self.add_input(name='ymin', interface=IFloat, value=0.)
        self.add_input(name='ymax', interface=IFloat, value=1.)
        self.add_input(name='hold', interface=IBool, value=True)
        self.add_input(name='kwargs or line2d', interface=IDict, value={'alpha':1.})

        self.add_output(name="axes")
        self.add_output(name="line2d")
Esempio n. 45
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='xmin', interface=IFloat, value=0)
        self.add_input(name='xmax', interface=IFloat, value=0.5)
        self.add_input(name='ymin', interface=IFloat, value=0)
        self.add_input(name='ymax', interface=IFloat, value=1)
        self.add_input(name='hold', interface=IBool, value=True)
        self.add_input(name='kwargs (Patch)', interface=IDict, value={})

        self.add_output(name='axes')
Esempio n. 46
0
    def __init__(self):
        Node.__init__(self)

        self.add_input(name="Canestra Scene")
        self.add_input(name="plants", interface=IEnumStr(['all']), value='all')
        self.add_input(name="optical species", interface=IEnumStr(['all']),
                       value='all')
        self.add_input(name="transparency", interface=IEnumStr(['all']),
                       value='all')
        self.add_input(name="color map", interface=IFunction)

        self.add_output(name="PlantGL scene")
        self.can_scene = None
Esempio n. 47
0
    def __init__(self):
        Node.__init__(self)
        self.add_input(name="axes", interface=ISequence, value=[])
        self.add_input(name="num", interface=IInt, value=1)
        self.add_input(name="figsize", interface=ISequence, value=(8, 6))
        self.add_input(name="dpi", interface=IFloat, value=80.)
        self.add_input(name="facecolor", interface=IEnumStr(tools.colors.keys()), value='white')
        self.add_input(name="edgecolor", interface=IEnumStr(tools.colors.keys()), value='black')
        self.add_input(name="frameon", interface=IBool, value=True)
        self.add_input(name="subplotpars", interface=ISequence, value=None)
        self.add_input(name="kwds", interface=IDict, value={})

        self.add_output(name="kwds", interface=IDict, value={})
Esempio n. 48
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='xmin', interface=IFloat, value=0)
        self.add_input(name='xmax', interface=IFloat, value=0.5)
        self.add_input(name='ymin', interface=IFloat, value=0)
        self.add_input(name='ymax', interface=IFloat, value=1)
        self.add_input(name='hold', interface=IBool, value=True)
        self.add_input(name='kwargs (Patch)', interface=IDict, value={})

        self.add_output(name='axes')
Esempio n. 49
0
 def __init__(self):
     Node.__init__(self)
     self.add_input(name='family', interface=IEnumStr(tools.families.keys()), value='serif')
     self.add_input(name='style', interface=IEnumStr(tools.styles.keys()), value='normal')
     self.add_input(name='variant', interface=IEnumStr(tools.variants.keys()), value='normal')
     self.add_input(name='weight', interface=IEnumStr(tools.weights.keys()), value='normal')
     self.add_input(name='stretch', interface=IEnumStr(tools.streches.keys()), value='normal')
     self.add_input(name='size', interface=IEnumStr(tools.sizes.keys()), value='medium')
     self.add_input(name='fname', interface=IStr, value=None)
     self.add_input(name='kwargs', interface=IDict, value={})
     #self.add_input(name='_init', _init=None)
     #todo style, variant and strethc do not seem to work
     self.add_output(name='kwds', interface=IDict, value={})
Esempio n. 50
0
    def __init__(self):
        Node.__init__(self)

        self.add_input(name="Canestra Scene")
        self.add_input(name="plants", interface=IEnumStr(['all']), value='all')
        self.add_input(name="optical species", interface=IEnumStr(['all']),
                       value='all')
        self.add_input(name="transparency", interface=IEnumStr(['all']),
                       value='all')
        self.add_input(name="color map", interface=IFunction)

        self.add_output(name="PlantGL scene")
        self.can_scene = None
Esempio n. 51
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='b', interface=IBool, value=True)
        self.add_input(name='which', interface=IEnumStr(tools.which.keys()), value='major')
        self.add_input(name='linestyle', interface=IEnumStr(tools.linestyles.keys()),   value='dotted')
        self.add_input(name='color', interface=IEnumStr(tools.colors.keys()),   value='black')
        self.add_input(name='linewidth', interface=IFloat, value=1.0)
        self.add_input(name='kwargs', interface=IDict, value={})

        self.add_output(name='axes')
Esempio n. 52
0
    def __init__(self):
        Node.__init__(self)
        self.add_input(name='alpha', interface=IFloat(0, 1, 0.1), value=1)
        self.add_input(name='color',
                       interface=IEnumStr(tools.colors.keys()),
                       value='k')
        self.add_input(name='fontproperties',
                       interface=IDict,
                       value={
                           'family': 'sans-serif',
                           'size': 12,
                           'stretch': 'normal',
                           'style': 'normal',
                           'weight': 'normal',
                           'variant': 'normal'
                       })
        self.add_input(name='horizontalalignment',
                       interface=IEnumStr(tools.horizontalalignment.keys()),
                       value='left')
        self.add_input(name='rotation',
                       interface=IFloat(-180, 180, 10),
                       value=0)
        self.add_input(name='verticalalignment',
                       interface=IEnumStr(tools.verticalalignment.keys()),
                       value='baseline')
        self.add_input(
            name='kwargs',
            interface=IDict,
            value={
                #'agg_filter': None,
                #            'animated': False,
                #            'axes': None,
                #            'clip_box': None,
                #            'clip_on': True,
                #            'clip_path': None,
                #            'contains': None,
                #            'figure': None,
                #            'gid': None,
                #            'path_effects': None,
                #            'picker': None,
                #            'rasterized': None,
                #            'rotation_mode': None,
                #            'snap': None,
                #            'text': '',
                #            'transform': None,
                'url': None,
                #            'visible': True,
                'zorder': 3
            })

        self.add_output(name='kwds', interface=IDict, value={})
Esempio n. 53
0
    def __init__(self):
        from matplotlib import font_manager
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name="axes")
        self.add_input(name="text", interface=IStr, value=None)
        self.add_input(name="fontsize", interface=IFloat, value=12)
        self.add_input(name="color",
                       interface=IEnumStr(tools.colors.keys()),
                       value='black')
        self.add_input(name='kwargs', interface=IDict, value={})

        self.add_output(name='axes')
Esempio n. 54
0
    def __init__(self):
        Node.__init__(self)
        self.add_input(name='alpha', interface=IFloat(0,1,0.1), value=1.)
        self.add_input(name='axes', interface=IDict, value={})
        self.add_input(name='color', interface=IEnumStr(tools.colors.keys()), value='None')
        self.add_input(name='edgecolor', interface=IEnumStr(tools.colors.keys()), value='black')
        self.add_input(name='facecolor', interface=IEnumStr(tools.colors.keys()), value='blue')
        self.add_input(name='figure', interface=IDict, value=None)
        self.add_input(name='fill', interface=IBool, value=True)
        self.add_input(name='label', interface=IStr, value=None)
        self.add_input(name='linestyle', interface=IEnumStr(tools.linestyles.keys()), value='solid')
        self.add_input(name='linewidth', interface=IFloat, value=None)

        self.add_output(name='output')
Esempio n. 55
0
    def __init__(self):
        from matplotlib.pyplot import rcParams
        Node.__init__(self)

        self.add_input(name='axes')
        self.add_input(name='fname',        interface=IStr, value=None)
        self.add_input(name='transparent',  interface=IBool, value=False)
        self.add_input(name='dpi',          interface=IInt(40,200,1), value=rcParams['figure.dpi'])
        self.add_input(name='facecolor',    interface=IEnumStr(tools.colors.keys()), value='white')
        self.add_input(name='edgecolor',    interface=IEnumStr(tools.colors.keys()), value='w')
        self.add_input(name='orientation',  interface=IEnumStr(tools.orientation_fig.keys()), value='portrait')
        self.add_input(name='papertype',    interface=IEnumStr(tools.papertypes.keys()), value=None)
        self.add_input(name='format',       interface=IEnumStr(tools.extensions.keys()), value='png')
        self.add_input(name='kwargs',       interface=IDict, value={})
Esempio n. 56
0
    def __init__(self):
        Node.__init__(self)

        self.add_input(name='axes')

        self.add_input(name='text', interface=IStr, value=None)
        self.add_input(name='xy', interface=ITuple, value=(0,0))
        self.add_input(name='xytext', interface=ITuple, value=(0,0))
        self.add_input(name='xycoords', interface=IEnumStr(tools.xycoords.keys()), value='data')
        self.add_input(name='textcoords', interface=IEnumStr(tools.xycoords.keys()), value='data')
        self.add_input(name='arrowprops', interface=IDict, value={'arrowstyle':'->', 'connectionstyle':'arc3'})
        self.add_input(name='bbox', interface=IDict, value=None)
        self.add_input(name='kwargs(text properties)', interface=IDict, value={})
        self.add_output(name='output')
Esempio n. 57
0
    def __init__(self):

        Node.__init__(self)
        #self.add_input(name="text", interface=IStr)
        #self.add_input(name="fontdict", interface=IDict, value=None)
        self.add_input(name="fontsize", interface=IFloat, value=12.)
        self.add_input(name="alpha", interface=IFloat(0., 1., step=0.1), value=0.5)
        self.add_input(name="color", interface=IEnumStr(tools.colors.keys()), value='blue')
        self.add_input(name='backgroundcolor', interface=IEnumStr(tools.colors.keys()), value='white')
        self.add_input(name='rotation', interface=IFloat, value='horizontal')
        #self.add_input(name="withdash", interface=IBool, value=False)
        self.add_input(name="kwargs", interface=IDict, value={})
        self.add_input(name="fontproperties", interface=IDict, value={})

        self.add_output(name="kwargs", interface=IDict, value=None)
Esempio n. 58
0
    def __init__(self):
        Node.__init__(self)
        CustomizeAxes.__init__(self)

        self.add_input(name="axes")

        self.add_input(name="text", interface=IStr, value=None)
        self.add_input(name="fontsize", interface=IFloat, value=12.)
        self.add_input(name="labelpad", interface=IInt, value=None)
        self.add_input(name="verticalalignment", interface=IEnumStr(tools.verticalalignment.keys()), 
            value='center')
        self.add_input(name="horizontalalignment", interface=IEnumStr(tools.horizontalalignment.keys()), 
            value='right')
        self.add_input(name="text properties", interface=IDict, value={})
        self.add_input(name='kwargs', interface=IDict, value={'rotation':'vertical'})

        self.add_output(name="axes")
Esempio n. 59
0
    def __init__(self):
        Node.__init__(self)

        #self.get_input('axes')

        self.add_input(name='arrowstyle', interface=IEnumStr(tools.arrowstyles.keys()), value='simple')
        self.add_input(name='connectionstyle', interface=IEnumStr(tools.connectionstyles.keys()), value='arc3')
        self.add_input(name='relpos', interface=ITuple, value=(0.5,0.5))
        self.add_input(name='patchA', interface=IDict, value=None)
        self.add_input(name='patchB', interface=IDict, value=None)
        self.add_input(name='shrinkA', interface=IDict, value=None)
        self.add_input(name='shrinkB', interface=IDict, value=None)
        self.add_input(name='mutation_scale', interface=IFloat, value=1)
        self.add_input(name='mutation_aspect', interface=IFloat, value=1)
        self.add_input(name='pathPatch', interface=IDict, value=None)
        self.add_input(name='ec', interface=IEnumStr(tools.linestyles.keys()), value='solid')
        self.add_input(name='kwargs', interface=IDict, value={})
        #todo for connection style, connectionstyle="angle,angleA=0,angleB=-90,rad=10"
        #todo for arrowstyle:head_length=0.4,head_width=0.2 tail_width=0.3,shrink_factor=0.5
        self.add_output(name='dict', interface=IDict, value={})
Esempio n. 60
0
    def __init__(self):
        Node.__init__(self)
        #[left, bottom, width,      height]
        self.add_input(name='input')
        self.add_input(name='clear', interface=IBool, value=True)
        self.add_input(name='left',     interface=IFloat(0, 1, 0.01), value=0.12)
        self.add_input(name='bottom',   interface=IFloat(0, 1, 0.01), value=0.12)
        self.add_input(name='width',    interface=IFloat(0, 1, 0.01), value=0.78)
        self.add_input(name='height',   interface=IFloat(0, 1, 0.01), value=0.78)
        self.add_input(name='axisbg',   interface=IEnumStr(tools.colors.keys()), value='white')
        self.add_input(name='frameon',  interface=IBool, value=True)
        self.add_input(name='polar',    interface=IBool, value=False)
        self.add_input(name='xscale',    interface=IEnumStr(tools.scale.keys()), value='linear')
        self.add_input(name='yscale',    interface=IEnumStr(tools.scale.keys()), value='linear')
        self.add_input(name='xticks',    interface=IEnumStr(tools.ticks.keys()), value='auto')
        self.add_input(name='yticks',    interface=IEnumStr(tools.ticks.keys()), value='auto')
        self.add_input(name='kwargs',    interface=IDict, value={})
        self.add_output(name='axes', interface=IDict, value={})

        self.axe = None