Quick start#

Import necessay libray

from openalea import rsml
from openalea.rsml.data import data_dir
from openalea.rsml.plot import plot2d, plot3d

Read and convert rsml file to MTG .. code-block:: python

g = rsml.rsml2mtg(data_dir/’lupin_aero.rsml’)

plot it in 2D

plot2d(g)  # requires matplotlib
_images/quick_start.png