Icon

Python Graphics - BoxPlot and ViolinPlot with Statistics

<p>Combined Violin–Boxplot Visualization with Statistical Summary and Custom Graphic Annotations</p><p></p>

URL: 9 best practices to boost automated business reporting https://www.knime.com/blog/-best-practices-automated-business-reporting
URL: Use Apache E Charts and KNIME to create dynamic graphics with Data Apps - KNIME Forum (90374) https://forum.knime.com/t/bar-chart-with-data-from-pivot-table/90355/14?u=mlauber71
URL: Box Plot sorted by Count - KNIME Forum (90706) https://forum.knime.com/t/box-plot-resorting-x-axis-based-on-condition/90706/2?u=mlauber71
URL: Medium: “The beautiful Violin Plot that has it all” — Create Graphics with R and KNIME Components https://medium.com/low-code-for-advanced-data-science/the-beautiful-violin-plot-that-has-it-all-create-graphics-with-r-and-knime-components-b45464428d19

Combined Violin–Boxplot Visualization with Statistical Summary and Custom Graphic Annotations

https://forum.knime.com/t/box-plot-resorting-x-axis-based-on-condition/90706/2?u=mlauber71

KNIME and Python — Setting up and managing Conda environments

https://medium.com/p/2ac217792539

Exploring the Power of Python Graphics with KNIME: A Collection of Examples

https://medium.com/p/841df87b5563

This Python Script for a KNIME node generates a combined violin + boxplot visualization for a selected categorical (x-axis) and numerical (y-axis) variable. It automatically computes detailed statistics per category (count, mean, median, quartiles, whiskers, min/max) and outputs them as a second KNIME data table.

The graphic is fully customizable via KNIME flow variables, including:

  • Selection of x and y columns

  • Sorting of categories (alphabetical or by count)

  • Text scaling factor

  • A custom title and footnote

  • An automatically appended UTC timestamp

The final figure is exported as a PNG image to an image output port.

This script is ideal for exploratory data analysis, audit-ready reporting, comparisons across categories, or reusable KNIME components that create standardized statistical graphics.

from_knime_boxplot_violinplot.png
Image Writer (Port)
using theadult sampledataset
Example Data Reader
Table to Image
Boxplot (Categorical vs Numeric)
Boxplot and ViolinPlot
1.920 x 1.080 PNG file
Renderer to Image
Image to Table

Nodes

Extensions

Links