KlynPlot
classin packageklyn.gui.windows.charts
public class KlynPlot extends KlynPlotWidget
└ Canvas
└ KlynPlot

A scientific plot displayed in its own Klyn window by show(). All drawing and plotting operations are inherited from KlynPlotWidget. Construction alone never opens a window or enters an event loop. The figure fills the window's client area without outer theme padding.

import klyn.gui.windows.charts
plot = KlynPlot("Experiment")
plot.title = "Measurements"
plot.plot([0.0, 1.0], [2.0, 3.0], label="signal")
plot.legend()
plot.show()
shares = KlynPlot("Language popularity")
shares.title = "TIOBE — October 2026"
shares.pie([19.23, 80.77], labels=["Python", "Other"],
           explode=[0.15, 0.0], autopct="%.2f %%", shadow=true,
           startAngle=90.0, counterClockwise=false)
shares.show()
Inherited Properties
propertyInherited Properties from KlynPlotWidget: projection, seriesCount, title, xLabel, yLabel, zLabel
propertyInherited Properties from Widget: accentColor, acceptFileDrops, backgroundColor, borderColor, bottom, canFocus, cornerRadius, cursor, font, foregroundColor, hasFocus, height, isEnabled, isHovered, isManaged, isPressed, isTabStop, isVisible, layoutParams, margin, maxHeight, maxWidth, minHeight, minWidth, parent, preferredHeight, preferredWidth, resolvedStyleCache, resolvedStyleCacheAppearanceMode, resolvedStyleCacheFont, resolvedStyleCacheRevision, resolvedStyleCacheStateKey, resolvedStyleCacheStyleClass, resolvedStyleCacheZoomRevision, right, size, sizePolicy, styleClass, toolTip, width, window, x, y
Inherited Events
eventInherited Events from Widget: filesDropped, focusGained, focusLost, keyPressed, keyReleased, mouseMoved, mousePressed, mouseReleased, mouseWheel, paintRequested, resized
Constructors
Modifier and Type Member Description
public KlynPlot
KlynPlot(windowTitle as String = "KlynPlot", projection as String = "2d")
@param windowTitle Native window caption, separate from the axes title.
Methods
Modifier and Type Member Description
public close
close() as Void
Closes the autonomous window if one is open.
public show
show() as Void
Opens the autonomous window and runs its event loop until it closes.
Inherited Methods
methodInherited Methods from KlynPlotWidget: autoscale, clear, colorbar, exportImage, grid, legend, paint, pie, pie, plot, plot, resetView, scatter, scatter, scatter, scatter, scatter, view, xLim, yLim, zLim
methodInherited Methods from Widget: applyThemeMetrics, blur, containsPoint, emitFilesDropped, emitFocusGained, emitFocusLost, emitKeyPressed, emitKeyReleased, emitMouseMoved, emitMousePressed, emitMouseReleased, emitMouseWheel, handleTabKey, notifyPaintRequested, paint, paintClipped, paintForeground, paintOverlay, preferredSizeIncludesContentZoom, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds