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')
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={})
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
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.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): 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)
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
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='name', interface=IStr, value='leaf') self.add_input(name='resource', interface=IFloat(0, 1, 0.01), value=0.2) self.add_input(name='maturation', interface=IFloat, value=21) self.add_input(name='growth_function', interface=IEnumStr(['sigmoid']), value='sigmoid') self.add_input(name='efficiency_method', interface=IEnumStr(['unity', 'sigmoid']), value='unity') 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={})
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={})
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')
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)
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) 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)
def __init__(self): inputs = [ { 'name': 'x', 'interface': None, 'value': None }, { 'name': 'y', 'interface': None, 'value': None }, { 'name': 'z', 'interface': None, 'value': None }, { 'name': 'marker', 'interface': IEnumStr(tools.markers.keys()), 'value': 'circle' }, { 'name': 'markersize', 'interface': IFloat, 'value': 10 }, { 'name': 'linestyle', 'interface': IEnumStr(tools.linestyles.keys()), 'value': 'solid' }, { 'name': 'color', 'interface': IEnumStr(tools.colors.keys()), 'value': 'blue' }, { 'name': 'kwargs', 'interface': IDict, 'value': {} }, ] Plotting.__init__(self, inputs)
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='top') self.add_input(name="horizontalalignment", interface=IEnumStr(tools.horizontalalignment.keys()), value='center') self.add_input(name="text properties", interface=IDict, value={}) self.add_input(name='kwargs', interface=IDict, value={}) self.add_output(name="axes")
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')
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)
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)
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) 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')
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={})
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')
def __init__(self): Node.__init__(self) self.add_input(name='time') self.add_input(name='method', interface=IEnumStr( growth.GrowthFunction.growth_function_methods), value='sigmoid') self.add_input(name='inf bound', interface=IFloat, value=0) self.add_input(name='sup bound', interface=IFloat, value=1) self.add_input(name='growth rate', interface=IFloat(-5, 5, 0.05), value=1) self.add_input(name='maturation', interface=IFloat, value=12) self.add_input(name='nu', interface=IFloat(0, 100, 0.1), value=1) self.add_output(name='data')
def __init__(self): Node.__init__(self) self.add_input(name='name', interface=IStr, value='general') self.add_input(name='verbose', interface=IBool, value=True) self.add_input(name='max_step', interface=IInt, value=210) self.add_input(name='max_elements', interface=IInt, value=5000) self.add_input(name='time_step', interface=IInt, value=1) self.add_input(name='save_image', interface=IBool, value=False) self.add_input(name='movie', interface=IBool, value=False) self.add_input(name='tag', interface=IStr, value='test') self.add_input(name='starting_year', interface=IFloat, value=2000) self.add_input(name='colorcode', interface=IEnumStr( ['normal', 'order', 'length', 'allocated']), value='normal') self.add_input(name='fast', interface=IBool, value=False) self.add_output(name='section_name', interface=IStr, value=None) self.add_output(name='options', interface=IDict, value={})
widgetmodule=None, widgetclass=None, ) __all__.append('generate_scene') selectOutput = Fa(uid="96612dac4e8311e6bff6d4bed973e64a", name='selectOutput', authors='M. Chelle,C. Fournier (wralea authors)', description='Select a variable in the output dictionnary of caribu', category='Unclassified', nodemodule='alinea.caribu.CaribuScene_nodes', nodeclass='selectOutput', inputs=[ {'interface': None, 'name': 'output', 'value': None, 'desc': ''}, {'interface': IEnumStr( enum=['area', 'Eabs', 'Ei', 'Ei_inf', 'Ei_sup']), 'name': 'variable', 'value': 'Ei', 'desc': 'see details on help tab'}, {'interface': IStr, 'name': 'band', 'value': None}], outputs=[ {'interface': None, 'name': 'selected output', 'desc': ''}, {'interface': None, 'name': 'key', 'desc': ''}], widgetmodule=None, widgetclass=None, ) __all__.append('selectOutput') getIncidentEnergy = Fa(uid="96612dad4e8311e6bff6d4bed973e64a", name='getIncidentEnergy', authors='C. Fournier', category='scene.light',
'linearregressiontoplot', 'linearregressionscipy', ] glm = Fa( uid="e7f010b84e7811e6bff6d4bed973e64a", name="glm (rpy)", description="Compute the generalized linear regression", category="openalea.stat.regression.regression", nodemodule="regression", nodeclass="Glm", inputs=( dict(name="X", interface=ISequence, showwidget=True), dict(name="Y", interface=ISequence, showwidget=True), dict(name="Family", interface=IEnumStr(['binomial', 'Gamma', 'gaussian', 'poisson']), showwidget=True), ), outputs=(dict(name="Glm", interface=IDict), ), ) linearregression = Fa( uid="e7f010b94e7811e6bff6d4bed973e64a", name="linear regression (rpy)", description="Compute the linear regression", category="regression", nodemodule="openalea.stat.regression.regression", nodeclass="LinearRegression", inputs=( dict(name="X", interface=ISequence, showwidget=True), dict(name="Y", interface=ISequence, showwidget=True),
__institutes__ = 'INRIA/CIRAD' __description__ = 'Plottools library' __url__ = 'http://openalea.gforge.inria.fr' __all__ = [] vsplot = Fa(uid="0ddb02764e7711e6bff6d4bed973e64a", name="VS Plot", description="Plot a list of 2D points plotable objects", category="Visualization,plot", nodemodule="openalea.plotools.plotable", nodeclass="display_VisualSequence", inputs=( dict(name='vis_seq_list', interface=None, showwidget=False), dict(name='visualisation', interface=IEnumStr(['PointLine', 'Hist']), value='PointLine'), dict(name='title', interface=IStr, value='MyPlot'), dict(name='xlabel', interface=IStr, value='x-axis-label'), dict(name='ylabel', interface=IStr, value='y-axis-label'), dict(name='figure', interface=IInt(0, 10), value=0), ), outputs=(dict(name='result', interface=None), )) __all__.append('vsplot') ptline_style = Fa( uid="0ddb02774e7711e6bff6d4bed973e64a", name="PointLine Style", description="Allows us to edit VisualSequence plot", category="Visualization,plot",
def __init__(self): Node.__init__(self) self.add_input(name='window', interface=IEnumStr(self.windows), value='hanning') self.add_input(name='n', interface=IInt, value=256) self.add_input(name='beta (kaiser only)', interface=IFloat(0.,100.,1), value=14.) self.add_output(name='array')
def __init__(self): Node.__init__(self) self.add_input(name='origin', interface=IEnumStr(origins), value=None) self.add_output(name='output', interface=IDict, value={})