public class KlynPlot extends KlynPlotWidget
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()| Modifier and Type | Member | Description |
|---|---|---|
| public | KlynPlot | @param windowTitle Native window caption, separate from the axes title. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void |
Closes the autonomous window if one is open. |
| public | showshow() as Void |
Opens the autonomous window and runs its event loop until it closes. |