From: Salazar, G. P. <ger...@si...> - 2007-09-02 05:04:01
|
Well, I did not even try to compile the example, but I did go ahead and tried to do in my program what you suggest: to use the "-portrait" command line argument. So, in my program, I simply set such argument internally with "plsetopt('portrait','')", and guess what...I do get a nice portrait plot! I think the test above was done in Solaris (using 3-year old PLplot installation), since right now I can't compile and run anything in Linux (latest version). So, for as long as "nothing" produces landscape and 'portrait' produces portrait...I was thinking of writing to two streams at the same time, one initialized to the default and the second to 'portrait'. Then, I can pick individual pages from each file at will to produce the desired final document, say, with pages 1 and 3 in landscape and page 2 in portrait. Except that, while the latest documentation for PLplot says that opening two streams is possible, the one version that I am currently using in Solaris seems to be version 5.3.1 and it does not let me open on stream after the other one ...it keeps complaining that plsdev() needs to be before plinit(), even though I issued plsstrm(1) after the first plinit(). Was opening two streams not allowed in version 5.3.1? If that is the case, I am going to have to wait until Tuesday for the one guy who installs PLplot in Linux for me...somehow, it does not seem to be working. Until later. G.Salazar =20 -----Original Message----- From: Alan W. Irwin [mailto:ir...@be...]=20 Sent: Saturday, September 01, 2007 11:37 AM To: Salazar, German P21322 Cc: plp...@li... Subject: Re: [Plplot-general] post-processing with plrender. P.S. German, mail delivery from plplot-general is not working very well. Thus, I never got Maurice's response to your initial post and only realized he had responded from one of your later e-mails that quoted his response. He is the expert on plrender. From his reply it appears my mental model of plrender is not correct, and it is much lower level than I thought. The fundamental issue is that -dev plmeta has fallen into disuse so volunteers have not stepped forward to fix it. Anyhow, since the issue you found is a known long-standing problem with plrender, it is clearly a "would-be-nice" fix rather than a showstopper for our next release, and using other devices directly is the preferred option now. To answer your question about -dev psc, I can use the -ori, -a, and -portrait options with with no problems. For example, I get the expected results using ./x01c -dev psc -portrait -o test.ps Do you? (Note ./x01c is one of the installed examples which you should be able to find in $prefix/share/plplot5.7.4/examples/c after you run the "make install" command. $prefix is the installation prefix you set with the cmake -DCMAKE_INSTALL_PREFIX option.) Once you can confirm portrait success for the installed examples, then copy their style for your own examples. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |