On Aug 5, 2007, at 2:56 PM, Alan W. Irwin wrote: > On 2007-08-05 12:02-0400 Hazen Babcock wrote: >> >> I was not aware of this convention, but I'll see if that is possible. > > I have never looked at these internals before, but it appears to be > straightforward. When your device calls plOpenFile it looks at the > filename > that has been set up, and if it is "-" it sets > > pls->OutFile = stdout; > pls->output_type = 1; > > It appears to be the responsibility of the file device driver to > use OutFile > (see ps.c where OF is #defined to by pls->OutFile), but currently > cairo.c > closes that file and uses FileName instead which is at least part > of the > source of the trouble. Currently no device other than plmeta uses > pls->output_type logic (which is only set for filename of "-" case in > plOpenFile), but for the cairo case where you are dealing with both > interactive and file devices it might be useful.
I was able to fix this, so you should now be able to write to stdout. The bounding box issue is going to take some more fiddling. I think I was misled by the default ps viewer on OS-X, "Preview", which seems to resize so that the plot is not clipped. I'll start testing using my linux box and ghostview instead. -Hazen ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel