Hi Vikas: PLplot is pretty flexible. It supports
plotting to interactive platforms (from http://plplot.sourceforge.net/):
GNOME
Gtk+
PyQt
Qt
Tcl/Tk
wxWidgets
X
It also can plot to in-memory files that can be pulled into PDLs: The
'mem' and 'memcairo' devices.
When I build perl/PDL/plplot on my system, I get this list of device
drivers to choose:
Plotting Options:
< 1> xwin X-Window (Xlib)
< 2> ps PostScript File (monochrome)
< 3> psc PostScript File (color)
< 4> xfig Fig file
< 5> null Null device
< 6> mem User-supplied memory device
< 7> svg Scalable Vector Graphics (SVG 1.1)
< 8> bmpqt Qt Windows bitmap driver
< 9> jpgqt Qt jpg driver
<10> pngqt Qt png driver
<11> ppmqt Qt ppm driver
<12> tiffqt Qt tiff driver
<13> svgqt Qt SVG driver
<14> qtwidget Qt Widget
<15> epsqt Qt EPS driver
<16> pdfqt Qt PDF driver
<17> extqt External Qt driver
<18> memqt Memory Qt driver
<19> xcairo Cairo X Windows Driver
<20> pdfcairo Cairo PDF Driver
<21> pscairo Cairo PS Driver
<22> epscairo Cairo EPS Driver
<23> svgcairo Cairo SVG Driver
<24> pngcairo Cairo PNG Driver
<25> memcairo Cairo Memory Driver
<26> extcairo Cairo External Context Driver
Perhaps the 'memqt' driver would be interesting? I have not used the
interactive drivers besides 'xwin'.
Regards,
Doug
[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611
On Fri, 15 Aug 2014, Vikas N Kumar wrote:
Hi Craig
Does PLplot allow for interactive plotting ?
--Vikas
On 08/15/2014 04:51 PM, Craig DeForest wrote:
Not easily, unfortunately. PGPLOT and PLplot are both monolithic libraries
with their own interfaces and no easy way to send an X (or other) GUI window
into a frame created by another one.
You can manage a static plot that way by generating the plot to a file, then
slurping the file and sending it to Prima for display. Both PGPLOT and PLplot
are reasonably fast, and with RAM-cached file I/O standard under POSIX it would
probably only cost a few tens of milliseconds: not viable for interactive
plotting, but just fine for static scientific display.
On Aug 15, 2014, at 2:22 PM, Vikas N Kumar <[email protected]> wrote:
Hi
Is there a way to embed the PLplot/PGPLOT window created by
PDL::Graphics::PLplot into another window created using say a toolkit
like Prima ?
Thanks
Vikas
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl