Python Plot

This Node Is Deprecated — This version of the node has been replaced with a new and improved version. The old version is kept for backwards-compatibility, but for all new workflows we suggest to use the version linked below.
Go to Suggested ReplacementPython 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.

Templates:
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.

IMPORTANT:
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)

Options

Script Editor/Unlink from Template
Gives access to the Python script after adaptation by the GUI.
Script Editor/Edit Template
Gives access to the RGG script.
Templates/Refresh
Loads again the template file.
Templates/Gallery
Generate a temporary webpage shown in a browser which gives an overview about all available templates.
Templates/Description,Source
Description shows some plot options and an example plot. Source displays the RGG script.
Templates/Use this template
Click to load the GUI (or double-click onto the template)
Output Options/File Type
Select .png or .jpeg
Output Options/Width, Height
Width and height of the plot in pixels, which is also used when the images is saved as a file.
Output Options/Selected File
Set the file name to save the plot as an image.
The following place holders are supported: $$DATE$$ for the current date, $$USER$$ for the username, $$WS$$ for the workspace directory, and FLOWVAR(variablename) to use flow variable values in the file name.

Input Ports

Icon
A table which should be visualized with Python.

Output Ports

Icon
The generated Python plot as image column

Popular Predecessors

  • Python Script (1⇒1)14 %
  • Math Formula5 %
  • CSV Reader5 %
  • Row Filter5 %
  • File Reader4 %
  • Column Filter4 %
  • Python Snippet4 %
  • GroupBy3 %
  • Rule Engine2 %
  • Statistics2 %
  • Joiner2 %
  • Column Rename2 %
  • Python Source2 %
  • Python Snippet2 %
  • Variable to Table Column2 %
  • Table Creator2 %
  • Sorter2 %
  • Data Explorer (JavaScript)2 %
  • Excel Reader (XLS)2 %
  • Line Plot (JavaScript)1 %
  • Time to String (legacy)1 %
  • Excel Reader (XLS)1 %
  • Column Auto Type Cast1 %
  • Missing Value1 %
  • Concatenate< 1 %
  • Constant Value Column< 1 %
  • Nominal Value Row Filter< 1 %
  • Box Plot< 1 %
  • Color Appender< 1 %
  • Color Manager< 1 %
  • SDF Reader< 1 %
  • Excel Reader (XLS)< 1 %
  • Matlab Snippet< 1 %
  • Value Counter< 1 %
  • Scatter Plot< 1 %
  • Random Numbers Generator< 1 %
  • PDB Property Extractor< 1 %
  • PCA< 1 %
  • Column Combiner< 1 %
  • Normalizer< 1 %
  • Round Double< 1 %
  • RowID< 1 %
  • Java Snippet (simple)< 1 %
  • Table View (JavaScript)< 1 %
  • Python Source< 1 %
  • Domain Calculator< 1 %
  • Counter Generation< 1 %
  • H2O to Table< 1 %
  • JPython Function< 1 %
  • Weka Cluster Assigner (3.7)< 1 %
  • Python Predictor< 1 %
  • Python Script (DB) (legacy)< 1 %
  • String to Date&Time< 1 %
  • R Snippet< 1 %
  • URI to String< 1 %
  • Variable to Table Row< 1 %
  • Table Reader< 1 %
  • Chunk Loop Start< 1 %
  • k-Means< 1 %
  • Distance Matrix Pair Extractor< 1 %
  • Concatenate (Optional in)< 1 %
  • Auto-Binner< 1 %
  • Numeric Binner< 1 %
  • Column Appender< 1 %
  • Column Merger< 1 %
  • Row Splitter< 1 %
  • Row Sampling< 1 %
  • Transpose< 1 %
  • Rule-based Row Filter< 1 %
  • Conditional Box Plot< 1 %
  • Math Formula (Multi Column)< 1 %
  • Python Script (1⇒1)< 1 %
  • R Source (Table)< 1 %
  • R Snippet< 1 %
  • Fast Fourier Transform (FFT)< 1 %
  • Example Data< 1 %
  • Normalize Plates (POC)< 1 %
  • Database Looping< 1 %
  • Fuzzy Rule Predictor< 1 %
  • Cluster Assigner< 1 %
  • MDS< 1 %
  • MultiLayerPerceptron Predictor< 1 %
  • PCA Apply< 1 %
  • PCA Compute< 1 %
  • Random Forest Predictor< 1 %
  • Category To Number< 1 %
  • Column Aggregator< 1 %
  • Column Resorter< 1 %
  • Rule-based Row Splitter< 1 %
  • Numeric Outliers (Apply)< 1 %
  • Data Generator< 1 %
  • Shape Manager< 1 %
  • DL Python Network Executor< 1 %
  • JPython Script 1:1< 1 %
  • TF< 1 %
  • Resize...< 1 %
  • Python Script (1⇒2)< 1 %
  • Python Script (2⇒1)< 1 %
  • Time Difference< 1 %

Popular Successors

Views

Python plot
The generated Python plot. Can be can be rescaled and replotted by double-clicking.

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.