Source code for node_export_figures

# This file is part of Sympathy for Data.
# Copyright (c) 2016, 2017, Combine Control Systems AB
#
# SYMPATHY FOR DATA COMMERCIAL LICENSE
# You should have received a link to the License with Sympathy for Data.
from sympathy.api import node as synode
from sympathy.api.nodeconfig import Port, Ports, Tag, Tags
from sympathy.api import exporters
from sylib import docs
from sylib.export import base


[docs] class ExportFigures(base.ExportMultiple, synode.Node): __doc__ = docs.EXPORTER_DOCS name = 'Export Figures' description = 'Export Figures to image files.' icon = 'export_figure.svg' tags = Tags(Tag.Output.Export) author = 'Benedikt Ziegler' nodeid = 'org.sysess.sympathy.export.exportfigures' inputs = Ports([Port.Figures('Input figures', name='figures'), Port.Datasources( 'External filenames', name='port1', n=(0, 1, 0))]) plugins = (exporters.FigureDataExporterBase, ) parameters = base.base_params() related = [ 'org.sysess.sympathy.visualize.figure', 'org.sysess.sympathy.visualize.figures', ]