Plotting package wxWidgets

818 views
Skip to first unread message

j.b...@mapperlithography.com

unread,
Apr 14, 2004, 2:32:40 AM4/14/04
to wx-u...@lists.wxwidgets.org
Dear all,

At this moment I am performing a survey with respect to plotting packages
based on wxWidgets. I am
looking for something like Plot Graphic Library
(http://www.pelikhan.com/DesktopDefault.aspx?tabid=29),
which provides a C++ interface that hides all nasty details of plotting a
graph.

I am aware of the fact that there is a contribution called plot, that
provides the wxPlotCanvas, and
another contribution call wxPlot based on PLplot. However, both do not
offer the functionality as
presented by the Plot Graphic Library (unless I add an C++ layer).

Does anyone know a plotting package based on wxWidgets that offers a
reasonable full-blown
C++ interface?

Kind regards,

John Boers

MAPPER Lithography
Lorentzweg 1
2628 CJ Delft, The Netherlands
tel.: +31 (0)15 2789507
fax: +31 (0)15-2789473
http://www.mapperlithography.com

This e-mail, attachments and (any part of) its content are (i) intended for
the named addressee(s) only and (ii) strictly confidential and proprietary.
All rights are reserved by MAPPER Lithography. Any unauthorized use,
disclosure and/or copying are strictly prohibited, except with prior and
express written permission by MAPPER Lithography. Should you have received
this e-mail, attachments and its content by mistake, please bring this to
our attention and destroy this e-mail and attachments in full. Thank you.

k. holwerda

unread,
Apr 14, 2004, 3:36:51 AM4/14/04
to wx-u...@lists.wxwidgets.org

Hi,

You can easily add more to the http://wxart2d.sourceforge.net/ its
curve module to do
what you need.
Several people are using it for charts already.

The basic charts, are already there.
See the lowwest "curve" module screenshots here:

http://wxart2d.sourceforge.net/screenshots/screenshots.html

The extra you get is:
-you can load and save in several formats. XML is a wxArt2D native format.
-you can add/draw on the graphs, and you can add markers, and edit the
curves interactive.
Markers can be dragged and showmarkers will update automatically.
-zooming and adding additional graphics interactive or using code is
dead simple.
-combine bitmap (zoomable ) with the rest of the drawing.

So this is not only for showing graphs, it can for example even do
GDSII to show your Lithography ;-)

Regards,

Klaas

j.b...@mapperlithography.com wrote:

>Dear all,
>
>At this moment I am performing a survey with respect to plotting packages
>based on wxWidgets. I am
>looking for something like Plot Graphic Library
>(http://www.pelikhan.com/DesktopDefault.aspx?tabid=29),
>which provides a C++ interface that hides all nasty details of plotting a
>graph.
>
>I am aware of the fact that there is a contribution called plot, that
>provides the wxPlotCanvas, and
>another contribution call wxPlot based on PLplot. However, both do not
>offer the functionality as
>presented by the Plot Graphic Library (unless I add an C++ layer).
>
>Does anyone know a plotting package based on wxWidgets that offers a
>reasonable full-blown
>C++ interface?
>
>
>


--
Unclassified


Nicolas Clemeur

unread,
Apr 14, 2004, 3:45:39 AM4/14/04
to wx-u...@lists.wxwidgets.org
Hello Klaas,

Your package looks really impressive. I am also interested in the plot/chart
capabilities. I have just one small question that I could not find an answer
by looking on the website: is it possible to have logarithm plot? Or this
has to be implemented. If yes, would it be difficult?

Cheers

Nicolas

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
> For additional commands, e-mail: wx-use...@lists.wxwidgets.org
>


k. holwerda

unread,
Apr 14, 2004, 4:08:22 AM4/14/04
to wx-u...@lists.wxwidgets.org

Nicolas Clemeur wrote:

>Hello Klaas,
>
>Your package looks really impressive. I am also interested in the plot/chart
>capabilities. I have just one small question that I could not find an answer
>by looking on the website: is it possible to have logarithm plot? Or this
>has to be implemented.
>

All in wxArt2D are wxCanvasObject derived classes, and those classes can
be nested.
So a curvegroup object has several curve or function objects as child,
markers also are childs of curves.
Show markers objects are at the same level as the curvegroup, but keep
an eye on the curve of which
they show the marker position.
As you will understand the curvegroup as its won coordinate system (
independent of the canvas its coordinate system.)
The same is in principle true for any object.

So the answer is yes, and it is not very complicated.
As long as you can draw/project it on a piece of paper, it can be done.
Because the idea is to project the objects internal data ( logarithmic
scale plus data ) on a 2d plot area.
It is i think just converting/projecting the logarithmic scale onto a
normal 2d coordinate system.
Editing such a logarithmic curve, might take some more effort, but of
that i am not sure without looking into it.

Regards,

Klaas


> If yes, would it be difficult?
>
>

No

>Cheers
>
>Nicolas
>
>


--
Unclassified


Nicolas Clemeur

unread,
Apr 15, 2004, 2:20:49 AM4/15/04
to wx-u...@lists.wxwidgets.org

> So the answer is yes, and it is not very complicated.
> As long as you can draw/project it on a piece of paper, it can be done.
> Because the idea is to project the objects internal data ( logarithmic
> scale plus data ) on a 2d plot area.
> It is i think just converting/projecting the logarithmic scale onto a
> normal 2d coordinate system.
> Editing such a logarithmic curve, might take some more effort, but of
> that i am not sure without looking into it.

Thank you Klaas, for this detailled explanation. I am not sure it is really
clear for me. I think drawing of the curves is not the major problem since,
it would not be to difficult to convert the real coordinate into the device
coordinate, but the rest of the "decoration" is probably more of a problem
(axes, label in the form 10^6 and not 100000,...). Well, I don't have
really the time now to investigate this, but this is already good to know
that it is feasible...

Cheers

Nicolas


Jon Trauntvein

unread,
May 1, 2004, 12:44:41 AM5/1/04
to wx-u...@lists.wxwindows.org
Israel Herraiz Tabernero <israel....@hispalinux.es> writes:

> --=-nKvv2WNt1SIfMKch5vS1
> Content-Type: text/plain
> Content-Transfer-Encoding: quoted-printable
>
> > Can you actually have a Gnuplot window IN an wxWidgets=20
> > application, or is Gnuplot a standalone application that you have to run =
> to=20
> > make any plots?
>
> Well, you can decide to show your plot in your wxWidgets window, or to
> show it in a standalone application.
>
> > If a Gnuplot widget could be used inside a wxWidgets application,=20
> > that may be great.
>
> You don't need a "Gnuplot widget". You only must create a static bitmap,
> and export your plot to PNG. Set the static bitmap to show your PNG
> image file, and all it's done :-)
>
> Currently, I am working in an engineering application, which creates
> some plots. All of them are generated with Gnuplot, exported to PNG
> (also with Gnuplot) and shown in my wxWidget window inside a static
> bitmap (well, the application also generates a HTML report, where the
> plots are shown). The Gnuplot window are not open in any moment. All
> this process are fully transparent for the user. The user only see the
> plot in the window.


This process is fine if the plot is a one time thing. If, however, the plot
needs to update in something close to real-time, this is not a very efficient
option. I am a big fan of gnuplot, however.

Regards,

Jon Trauntvein


Nigel Nunn

unread,
May 2, 2004, 1:26:17 AM5/2/04
to wx-u...@lists.wxwidgets.org, bro...@physik.rwth-aachen.de, Nigel Nunn

Hi,
The day Gnuplot 4 was released (April 16, 2004), I said I'd
try integrating it with wxWidgets. All went well, and even
those long sequences of Gnuplot demo scripts appear to work
as usual. However, I am buried under many uni assignments,
so have not yet added the GUI frills. Currently, it can be
driven programmatically by sending standard Gnuplot command
strings to the plotting engine, and "set term wx" sends the
plots (2&3D) to an arbitrary wxPanel.

If anyone is keen to look at the pre-alpha version, let me
know. First problem is justification of text labels. I used
the existing win.trm as starting point for a wx.trm, but Win32
DCs have a routine for text alignment (not in wx2.4.1?):

SetTextAlign(
HDC hdc, // handle to device context
UINT fMode); // text-alignment flag

where fMode is:

TA_BASELINE, TA_BOTTOM, TA_TOP,
TA_CENTER, TA_LEFT, TA_RIGHT

Once I work out some wx eqivalent and clean up a demo, the
code may serve as a starting point for someone with spare
time to add a full set of menus, etc.

Nigel
em: [nn...@ausport.gov.au]


-------- original message --------

Date: 30 Apr 2004 22:44:41 -0600
To: wx-u...@lists.wxwindows.org
From: Jon Trauntvein <j.trau...@comcast.net>


Subject: Re: Plotting package wxWidgets

Message-ID: <wk8ygcz...@comcast.net>

Israel Herraiz Tabernero <israel....@hispalinux.es> writes:

> >
> > Can you actually have a Gnuplot window IN an wxWidgets

> > application, or is Gnuplot a standalone application that

> you have to run to make any plots?


>
> Well, you can decide to show your plot in your wxWidgets window,
> or to show it in a standalone application.
>
> > If a Gnuplot widget could be used inside a wxWidgets application,

> > that may be great.
>
> You don't need a "Gnuplot widget". You only must create a static
> bitmap, and export your plot to PNG. Set the static bitmap to show
> your PNG image file, and all it's done :-)
>
> Currently, I am working in an engineering application, which creates
> some plots. All of them are generated with Gnuplot, exported to PNG
> (also with Gnuplot) and shown in my wxWidget window inside a static
> bitmap (well, the application also generates a HTML report, where the
> plots are shown). The Gnuplot window are not open in any moment. All
> this process are fully transparent for the user. The user only see the
> plot in the window.

This process is fine if the plot is a one time thing. If, however,
the plot needs to update in something close to real-time, this is
not a very efficient option. I am a big fan of gnuplot, however.

Regards,

Jon Trauntvein


**********************************************************************************
This message is intended for the addressee named and may contain confidential and
privileged information. If you are not the intended recipient please note that
any form of distribution, copying or use of this communication or the information
in it is strictly prohibited and may be unlawful.
If you receive this message in error, please delete it and notify the sender.

Keep up to date with what's happening in Australian sport.
Visit http://www.ausport.gov.au
**********************************************************************************

Reinhard Salzgeber

unread,
May 3, 2004, 3:28:08 PM5/3/04
to wx-u...@lists.wxwidgets.org

You seem to have much work to do:-) But I am very interested in accessing
GNU-Plot from within wxWidgets. I am involved in 3D-plotting of the tension
in mechanical systems and intend to use wx for my next projects. I am not a
too good programmer at all but wxWidgets works fine for me so far. Do you
intend to make a documentaion for this work or put something to the wxWIKI?

yours Reinhard


From: Nigel Nunn <nN...@ausport.gov.au>
Sent: Samstag, 1. Mai 2004 18:32
To: wx-u...@lists.wxwindows.org
Subject: Re: Plotting package wxWidgets

> Hi,
> The day Gnuplot 4 was released (April 16, 2004), I said I'd
> try integrating it with wxWidgets. All went well, and even
> those long sequences of Gnuplot demo scripts appear to work
> as usual. However, I am buried under many uni assignments,
> so have not yet added the GUI frills. Currently, it can be
> driven programmatically by sending standard Gnuplot command
> strings to the plotting engine, and "set term wx" sends the
> plots (2&3D) to an arbitrary wxPanel.

---------------------------------------------------------------------


To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
For additional commands, e-mail: wx-use...@lists.wxwidgets.org

Dipl.-Ing Reinhard Salzgeber
Fischbacherstrasse 27
Kelkheim im Taunus


Date: 30 Apr 2004 23:48:41 -0100
To: "Programmierer Linux und Windows Gruppe" <R.Sal...@gmx.net>
From: "Dipl.-Ing. Juergen Schuhmacher privat" <j.schu...@gmx.de>
Subject: Datenbanken und Windows Programmierung mit ODBC


Hallo

nein, das Programm ist sozusagen eine Steuersoftware für ein Medizingerät.
Es wurde für meine ehemalige Firma entwickelt und ich habe das im Anschluss
noch ein wenig weiterentwickelt. Ich teste das gerade für Linux unter KDE.
Es liest die Daten aber nur seriell aus und schreibt sie in eine Datenbank.
Es handelt sich dabei um eine ganz normale Datenbank in Microsoft Access.
Unter Linux geht das natürlich nur mit mySQL.

Zu Deiner anderen Frage: Ich fand viele Informationen über ODBC in den
Microsoftbüchern aus dem Markt und Technik-Verlag. Davon habe ich 4-oder 5
Stück. Sieh mal auf meiner Webseite nach, dort findest Du massig
Literaturhinweise.

http://home.arcor.de/juergen.schuhmacher/progrecommend.html

Es gibt dort auch ein Buch "Programmieren in PHP und mySQL" - mit dem ich
eine Webapplikation gemacht habe. Dort findet sich sehr viel über mySQL.
Eine andere Empfehlung wäre das Buch über die Unternehmensdatenbanken mit
Acccess und SQL. Mehr braucht man eigentlich nicht. Wenn Du die alle gelesen
hast, hast Du's drauf :-)) Freie Resourcen gibt es freilich auch, aber die
Programmierbücher sind nicht teuer und lohnen absolut.

Schönen Gruss aus dem Linsengericht

Dipl.-Ing. Jürgen Schuhmacher

P.S. ich habe noch ein paar ältere Bücher über Messtechnik und
Port-Programmierung von früher her. Da war auch Demosoftware dabei, die ich
schicken könnte. Allerdings ist das meiste in Pascal/Delphi formuliert und
in Windows nicht direkt zu gebrauchen.

---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
> For additional commands, e-mail: wx-use...@lists.wxwidgets.org
>

Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info

-----


--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl


Arnout Engelen

unread,
May 6, 2004, 7:27:40 AM5/6/04
to wx-u...@lists.wxwidgets.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, May 02, 2004 at 03:26:17PM +1000, Nigel Nunn wrote:
> The day Gnuplot 4 was released (April 16, 2004), I said I'd
> try integrating it with wxWidgets. All went well, and even
> those long sequences of Gnuplot demo scripts appear to work

> as usual. Currently, it can be driven programmatically by

> sending standard Gnuplot command strings to the plotting
> engine, and "set term wx" sends the plots (2&3D) to an
> arbitrary wxPanel.

Very cool. Wish i had time to play with it, but very cool.


Arnout
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAmiEsWSAvNcFEP+sRAtNgAJ0YHBm/+VjRTvyt6D8YcjncqBVhOgCeKawm
Kds77/MdxIs0sjjwEb2BS5U=
=qbW0
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages