Icon

02_​Create_​Overlaying_​Plots_​using_​Matplotlib_​package

Overlaying Plots Using Matplotlib in KNIME

This workflow demonstrates creating overlaying plots using matplotlib python package in Python Script node. In this example, a histogram is created of 20 bins and is overlayed with a frequency polygon. This frequency polygon connects mid-points of each interval, portraying the shape of distribution followed by the numerical column.


Configure the Python Script node for visualisationsThe Python Script node can be provide with a table or an object as inputport and it can output a table, object or an image based on the user'sselection of portsStep 1: Drag the Python Script node to KNIME Analytics PlatformStep 2: Click on the three dots on the node to add an image output portStep 3: Write your script in the "Script" and import the matplotlib package tocreate overlaying and press "execute script" to check if the execution wassuccessful. Adopting Python Bundled Packages : Download and open this workflow to auto-install requirements and execute the Python scripts. This workflow uses a node from KNIMEPython Integration, which installs Python and a number of pre-defined packages on your system. Supported on KNIME Analytics Platform4.7 or higher. Use Matplotlib Package for creating overlaying plotsGenerate Data of two columnsView the Image Python Script Data Generator Image Output Widget Configure the Python Script node for visualisationsThe Python Script node can be provide with a table or an object as inputport and it can output a table, object or an image based on the user'sselection of portsStep 1: Drag the Python Script node to KNIME Analytics PlatformStep 2: Click on the three dots on the node to add an image output portStep 3: Write your script in the "Script" and import the matplotlib package tocreate overlaying and press "execute script" to check if the execution wassuccessful. Adopting Python Bundled Packages : Download and open this workflow to auto-install requirements and execute the Python scripts. This workflow uses a node from KNIMEPython Integration, which installs Python and a number of pre-defined packages on your system. Supported on KNIME Analytics Platform4.7 or higher. Use Matplotlib Package for creating overlaying plotsGenerate Data of two columnsView the Image Python Script Data Generator Image Output Widget

Nodes

Extensions

Links