Hi Arjen:

If you look at the code in drivers/ntk.c, it appears this simple
device driver is completely based on Tk with no direct dependence on X
at all.  Since this is quite a novel approach compared to everything
else we do with Tk, I tried enabling this device (-DENABLE_ntk=ON).  It
built without issues on Linux, and, for example,

valgrind examples/c/x01c -dev ntk

appears to run without any error messages or memory management issues, but the
display is blank.  So apparently some bit rot has crept in since I
last sucessfully tested this device (~5 years ago).

I think the approach of using pure Tk is a good one especially for
non-Cygwin Windows.  So I hope you will take a further look at this
device to see if you can figure out a simple fix for the display
issue.

You might also want to move to a similar pure Tk approach for the
tkwin "device" which is not really a device that is dynamically loaded
by libplplotd.  Instead, it is a shared object that is dynamically
loaded as a result of the "package require Plplotter" command, and the
code in tkwin.c provides all the low-level plot capability required by
that command. That capability is currently provided by calls to X, but
what I am suggesting is you could change that to calls to Tk instead
as is currently done for the ntk device.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to