From: Andrew R. <an...@co...> - 2003-10-15 16:05:02
|
Hi Jou, I'm afraid there is no GUI option in C++ to save the current plot like there is with the tk examples. You can do it in your own programs though. Look at example x20 which allows you to save a plot by replicating a stream using cpstrm, changing the device and then replotting. This should do what you want. Same goes for C. Andrew On Wed, Oct 15, 2003 at 10:39:51AM -0500, Herng-Jeng Jou wrote: > Hi Andrew, > > I have another question in the C++ binding, hope you don't mind. > Is it possible to save the output to a file while the plot is currently > being > viewed? I think it is possible as that has been achieved in the tk driver. > But I could not figure out how to do that in C++/PLplot. > Can you help? > Thanks, > > Jou > > At 03:02 PM 10/15/2003 +0100, Andrew Ross wrote: > > >Hi Jou, > > > >How exactly are you compiling the examples statically? Do you mean > >that you are compiling the whole library statically? > > > >There have been some API changes in the C++ bindings so you are now > >required to call plstream::init() explicitly. Is it possible that you > >are linking against an old version of the library which might explain > >your problem? > > > >Do you get the same problems with all the C++ examples? > > > >Cheers > > > >Andrew > > > >On Wed, Oct 15, 2003 at 08:38:54AM -0500, Herng-Jeng Jou wrote: > >> Hi, > >> I compiled PLplot CVS 20031004 ok on RedHat Linux 7.3 with gcc/g++ 2.96. > >> The x01.cc example works fine as compiled with dynamic linkage. When I > >tried > >> to link it statically, the executable runs with an empty plotting window > >> (black > >> background) and with no plot in it. > >> Jou > >> > >> ======================================= > >> Herng-Jeng Jou > >> QuesTek Innovations, LLC > >> 1820 Ridge Avenue > >> Evanston, IL 60201 > >> (Tel) 847.425.8221 > >> (Fax) 847.328.5855 > >> hj...@qu... > >> > >> > > > >> ------------------------------------------------------- > >> This SF.net email is sponsored by: SF.net Giveback Program. > >> SourceForge.net hosts over 70,000 Open Source Projects. > >> See the people who have HELPED US provide better services: > >> Click here: http://sourceforge.net/supporters.php > >> _______________________________________________ > >> Plplot-general mailing list > >> Plp...@li... > >> https://lists.sourceforge.net/lists/listinfo/plplot-general > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >SourceForge.net hosts over 70,000 Open Source Projects. > >See the people who have HELPED US provide better services: > >Click here: http://sourceforge.net/supporters.php > >_______________________________________________ > >Plplot-general mailing list > >Plp...@li... > >https://lists.sourceforge.net/lists/listinfo/plplot-general > > ======================================= > Herng-Jeng Jou > QuesTek Innovations, LLC > 1820 Ridge Avenue > Evanston, IL 60201 > (Tel) 847.425.8221 > (Fax) 847.328.5855 > hj...@qu... |