Plotting with wxWidgets |
Several people have asked about how to plot charts in wxWidgets. Here's a message from Frank Huebner that might be of interest (there are also some simple plotting classes in wxWidgets from 2.1.14).
From: Frank Huebner
Date: Wed, 3 Nov 1999 10:10:58 +0100 (MET)
To: wxwin-developers@wx.dent.med.uni-muenchen.de
Subject: wxWidgets plotting toolA while ago I asked at wxwin-users for a plotting library (creating scientific plots) compatible, or at least usable with wxwin2. Unfortunately there was no such tool.
I looked for a solution and found that it is easy to integrate Plplot (see emma.la.asu.edu/plplot/) into wxwin. I only had to write a device driver and change a few other lines of code. The original plplot code was preserved as much as possible.
For me, the code is functional and I want to contribute it to wxWidgets. Julian Smart has put the code into
ftp://www.remstar.com/pub/wxwin/contrib/wxplot
The aim of this package is creating 2D and 3D scientific plots (rather than business charts). You can plot on a wxClientDC, see a print preview on the screen and print it through wxwin printing utilities. The package includes it own scalable vector fonts, which allows e.g. 3D mesh plots with good looking annotations. Look at the demo example included in the package or at the plplot web site.
I tested the code under WinNT (mingw32) and Linux/GTK and it is working with recent wxwin CVS code. I wrote a single makefile usable for this. There are still things to do: write makefiles for other systems and test the code. The Plplot documentation itself is a bit out of date, but is is usable. So it would be very nice if someone could upgrade the documentation. If there is anybody interested in doing this please contact me.
If you have got further questions, please send messages to my address below, as I am not subscribed to wxwin-developers (but to wxwin-users).
Have fun with it!
Frank