plot API#
Visualisation of an MTG computed from RSML
Visualisation: 1. PlantGL and Matplotlib 2. Time-series 3. Annotations
- openalea.rsml.plot.multiple_plot(files, image=True)[source]#
horizontally plot several rsml architecture over images if image is True :param files: str list of files path :param image: if True plot rsml architecture over the image, else plot rsml only. :return: plot of all files in the same figure.
- openalea.rsml.plot.plot2d(g, img_file=None, axis=None, root_id=None, color=None, order=None, clear=True, **args)[source]#
Plot MTG with grains on the initial image.
- Parameters:
g : MTG with properties like 2D coordinates and grains.
- Optional Parameters:
img_file : an array, or the filename, of an image to display in background
axis : matplotlib axis to display several plot in the same figure
root_id : if None, root_id is the first root of the MTG at scale=max_scale . Draw all the descendants of root_id. root_id can also be a list of vertices.
order : draw only vertices of order ‘order’
color: function or dict to define the color of each vertex. Format is matplotlib colors (e.g. ‘b’, ‘g’, ‘y’, ‘r’)
Download the source file ../../src/openalea/rsml/plot.py.