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): 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) 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)
name="Aggregative Distribution", description="clustered distributions", category="Spatial,scene", nodemodule="openalea.spatial.distribGen", nodeclass="aggregative_distrib", ) rand2d = Fa( uid="7c062fcb4e7711e6bff6d4bed973e64a", name="Random 2D", description="Generates random spatial distribution in a 2D domain", category="Spatial,scene", nodemodule="openalea.spatial.distribGen", nodeclass="random2D", inputs=( dict(name="n", interface=IInt(min=0), value=10, showwidget=True), dict( name="distribution", interface=IFunction, ), dict( name="domain2D", interface=None, ), ), outputs=(dict(name="x", interface=ISequence), dict(name="y", interface=ISequence)), ) spatial_dist = CNF( uid="7c062fcc4e7711e6bff6d4bed973e64a",
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", nodemodule="openalea.plotools.plotable", nodeclass="change_VisualSequence_PointLineView", inputs=( dict(name='vis_seq', interface=None, showwidget=False), dict(name='new_legend', interface=IStr, value='Default'),
{ 'interface': IFloat, 'name': 'val' }, { 'interface': IFloat, 'name': 'minval', 'value': 0 }, { 'interface': IFloat, 'name': 'maxval', 'value': 1 }, { 'interface': IInt(0, 400), 'name': 'Hue1', 'value': 0 }, { 'interface': IInt(0, 400), 'name': 'Hue2', 'value': 100 }, { 'interface': IInt(0, 255), 'name': 'Sat', 'value': 220, 'showwidget': False, 'hide': True },
outputs=[{ 'interface': None, 'name': 'result', 'desc': '' }], widgetmodule=None, widgetclass=None, ) ppymap = Fa( uid="a08a1ef14e7611e6bff6d4bed973e64a", name='pmap', description='Apply a function on a sequence', category='Functional', nodemodule='openalea.multiprocessing.parallel', nodeclass='pymap', inputs=({ 'interface': IFunction, 'name': 'func' }, { 'interface': ISequence, 'name': 'seq' }, { 'interface': IInt(min=1, max=16777216, step=1), 'name': 'N' }), outputs=(dict(name="out", interface=ISequence), ), widgetmodule=None, widgetclass=None, )