Discussion:
Plotting package wxWidgets
(too old to reply)
j***@mapperlithography.com
2004-04-14 06:32:57 UTC
Permalink
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.





---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
k. holwerda
2004-04-14 07:42:40 UTC
Permalink
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
Post by j***@mapperlithography.com
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


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
Nicolas Clemeur
2004-04-14 07:48:11 UTC
Permalink
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


----- Original Message -----
From: "k. holwerda" <***@nl.thalesgroup.com>
To: <wx-***@lists.wxwidgets.org>
Sent: Wednesday, April 14, 2004 5:36 PM
Subject: Re: Plotting package wxWidgets
Post by k. holwerda
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.
http://wxart2d.sourceforge.net/screenshots/screenshots.html
-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
Post by j***@mapperlithography.com
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
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
k. holwerda
2004-04-14 08:09:47 UTC
Permalink
Post by Nicolas Clemeur
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
Post by Nicolas Clemeur
If yes, would it be difficult?
No
Post by Nicolas Clemeur
Cheers
Nicolas
--
Unclassified


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
Nicolas Clemeur
2004-04-15 06:23:13 UTC
Permalink
Post by k. holwerda
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


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
Israel Herraiz Tabernero
2004-04-15 15:45:38 UTC
Permalink
Post by Nicolas Clemeur
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,...).
Have you tried Gnuplot?

Visit http://ndevilla.free.fr/gnuplot/ and
http://jijo.cjb.net/code/cc++, where you can find a C and a C++ libs, in
order to generate figures with gnuplot from your C/C++ program. You can
export them to PNG, and show in your window with a wxStaticBitmap.
--
/|\ Israel Herraiz <***@hispalinux.es>
/_|_\ Fingerprint: 1D08 6AB1 709D 37A2 0CFD
\ | / _ 9733 CEE4 0EA0 6248 BA12
\|/ ( ) _._
'. U .'_|_'.
'. '. |(o_ (o_ (o_
{o_ (o_ //\_.___ //| //\
(')_ (\)_ V_/_'oo' V_|_ V__)_
Doug Tinkham
2004-04-15 16:37:46 UTC
Permalink
Post by Israel Herraiz Tabernero
Post by Nicolas Clemeur
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,...).
Have you tried Gnuplot?
I'm glad you mentioned Gnuplot, but I have a question on exactly how
Gnuplot works. 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? If so, this is not real useful to many of us who are
wanting a decent plotting COMPONENT inside our wxWidgets application for
making nice 2D plots, with axes, titles, tickmarks, etc. that looks
professional enough to be published in a scientific journal.

I have yet to see a component for wxWidgets that can produce simple but
high-quality 2D plots (the example screenshots of 2D charts on the wxArt2D
webpage are clearly not of a quality that could be used in any type of
professional publication; although this is probably just a poor choice of
screenshots, and maybe the library is quite capable of producing such
plots). If a Gnuplot widget could be used inside a wxWidgets application,
that may be great.

Doug






---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
Israel Herraiz Tabernero
2004-04-15 18:46:18 UTC
Permalink
Post by Doug Tinkham
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.
Post by Doug Tinkham
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.

If you want to see some screenshots, mail me and I will send you two or
three. The application is not available on the Internet at this moment
(it will be coming soon, released under GPL), so this is the only way I
can show the screenshots.
--
/|\ Israel Herraiz <***@hispalinux.es>
/_|_\ Fingerprint: 1D08 6AB1 709D 37A2 0CFD
\ | / _ 9733 CEE4 0EA0 6248 BA12
\|/ ( ) _._
'. U .'_|_'.
'. '. |(o_ (o_ (o_
{o_ (o_ //\_.___ //| //\
(')_ (\)_ V_/_'oo' V_|_ V__)_
Jon Trauntvein
2004-05-01 04:45:50 UTC
Permalink
--=-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


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-***@lists.wxwidgets.org
For additional commands, e-mail: wx-users-***@lists.wxwidgets.org
Nigel Nunn
2004-05-02 05:28:45 UTC
Permalink
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: [***@ausport.gov.au]


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

Date: 30 Apr 2004 22:44:41 -0600
To: wx-***@lists.wxwindows.org
From: Jon Trauntvein <***@comcast.net>
Subject: Re: Plotting package wxWidgets
Post by Doug Tinkham
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.
Post by Doug Tinkham
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
**********************************************************************************

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