Python Plot


This node creates plots using Python. The script for Python can be selected from a plot template repository. RGG (R GUI Generator) is used to configure the Python code using a graphical user interface in a way that the user does not need to know scripting in Python. URL of the template file can be set in KNIME->Preferences->KNIME->Python Scripting.
The input data table from KNIME is converted to a dictionary and imported into Python as a variable named "kIn". The plot from Python is sent back to KNIME as the output.

Script Editor:
Copy, cut or paste and Python code to the editor and/or select the columns from your data table. If a template is loaded used the GUI to adapt the script to the input data.

Select a plot template from the template repository (double-click or "Use this template") to use that script and see the GUI. The description shows you an example plot than can be done using this template. Then configure the GUI according to your input data.

Output Options:
Specify the image dimensions of the plot and the type and location where to save that image.

This node is using Python as backend, make sure that Python is installed locally or that the node can connect to the Python server is running somewhere accessible. Check the node configurations: KNIME->Preferences->KNIME->Python Scripting.
Further documentation can be found on the Scripting integration Wiki (Python server)

Input Ports

  1. Type: Data
    A table which should be visualized with Python.

Output Ports

  1. Type: Image
    The generated Python plot as image column


This node is part of the extension

KNIME Python Scripting extension


Short Link

Drag node into KNIME Analytics Platform