🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #104

Re: ANNOUNCE: implot.Tk 1.0 – ImPlot and ImPlot3D bindings for Tcl/Tk 9

#104
From: meshparts
Date: Mon, 26 Oct 2026 12:39
67 lines
3574 bytes
Am 25.10.2026 um 14:50 schrieb Nicolas ROBERT:
> I'm pleased to announce implot.Tk 1.0, Tcl/Tk bindings for
> ImPlot and ImPlot3D: fast, interactive 2D/3D plots rendered with OpenGL
> in a Tk widget.
> 
> Quick Intro:
> Unlike Tk, which uses a traditional "retained mode", Dear ImGui (the core and its ecosystem)
> operates in "immediate mode". This means the UI is entirely redrawn
> at every frame.
> 
> Implot.Tk features:
> - ImPlot 1.0: lines, scatter, bars, shaded, stairs, stems, error bars,
>    heatmaps, histograms, pie charts, digital plots, subplots, tables...
> - ImPlot3D 0.4: 3D lines, scatter, surfaces, meshes...
> - Dear ImGui 1.92 widgets (sliders, checkboxes, combos...) next to the plots.
> - Interactive: zoom, pan, drag tools, annotations, plot queries.
> - Several surfaces in the same application, rendered on demand.
> - Windows, Linux and macOS (universal).
> 
> Requirements:
> - Tcl/Tk 9.0
> - Tcl cffi 2.0
> - TkGL
> - A set of C shared libraries.
> 
> Ready-to-use packages (including the C library and TkGL) are available
> on the GitHub Releases page.
> 
> Quick example:
> package require implot.tk
> 
> # 1. Creates the surface (no Tk widget yet) and sets its options.
> set f [implottk::surface new]
> $f SetOptions -width 600 -height 400 -title "Line" -axisName {x y}
> 
> # 2. Adds the commands, evaluated at each frame.
> $f AddPlotCmd {
>      implottk::static {
>          set xs [implottk::doubleToPointer {0 1 2 3 4}]
>          set ys [implottk::doubleToPointer {0 1 0.5 4 1}]
>      }
>      implot::PlotLine_doublePtrdoublePtr "Line 1" $xs $ys 5 {LineColor {x 1 y 0 z 0 w 1}}
> }
> 
> # 3. Render creates the Tk widget and returns its path, 4. pack it.
> pack [$f Render] -fill both -expand 1
> 
> I started this project several years ago, and it's always been
> highly important to me.
> 
> Source, demos and downloads:
> https://github.com/nico-robert/implot.tk
> 
> Nicolas
> 
> Feel free to look around these cross-functional projects.
> At the core of this ecosystem is Dear ImGui, all the other projects
> build upon it to provide high-performance 2D and 3D plotting capabilities:
> - https://github.com/epezent/implot
> - https://github.com/brenocq/implot3d
> - https://github.com/ocornut/imgui
> 
> The C Libraries:
> - https://github.com/cimgui/cimgui
> - https://github.com/cimgui/cimplot
> - https://github.com/cimgui/cimplot3d
Looks very good!
Technical Details
Message-ID: <11bnhmb$cr2j$1@tota-refugium.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
References: <1792936220-10104@newsgrouper.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: meshparts <alexandru.dadalau@meshparts.de>
Newsgroups: comp.lang.tcl
Subject: Re: ANNOUNCE: implot.Tk 1.0 – ImPlot and ImPlot3D bindings for Tcl/Tk 9
Date: Mon, 26 Oct 2026 13:39:38 +0100
Message-ID: <11bnhmb$cr2j$1@tota-refugium.de>
References: <1792936220-10104@newsgrouper.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 26 Oct 2026 12:39:39 -0000 (UTC)
Injection-Info: tota-refugium.de;
	logging-data="420947"; mail-complaints-to="abuse@news.tota-refugium.de"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UTj/7sf5r/PAHP4yxX4o3sxmPKI=
In-Reply-To: <1792936220-10104@newsgrouper.org>
X-User-ID: eJwFwYEBwEAEA8CVBMGvg9p/hN7RAjHpwXAez7c4ClkjHRfSbVvQ8Pekqf6BKjktZZaJH/9LD6E=