I'll probably end up doing that --- drawing with Cairo operators. If the Cairo PostScript output is human readable, I'll use it, but it has been my experience that most generated PostScript/EPS is very garbled so if that's the case I'll just mirror the code in raw PostScript and only use Cairo for the GUI and let my program generate the final output.
<br> <br>I've been looking into using Common Lisp for the GUI, but I'm not sure how easy it will be to integrate GTK (I'm using cells-gtk) with Cairo (I haven't looked into it much, but there appears to be a few lisp wrappers) and end up with anything remotely portable --- I'm hoping for this to be useable on OS X and *nix without too much hassle. Thanks for the suggestions!
<br><br>Kevin<br><br><div><span class="gmail_quote">On 5/25/07, <b class="gmail_sendername">Carl Worth</b> <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Thu, 24 May 2007 09:24:48 -0700, "Kevin Lynagh" wrote:<br>> Ad far as I can tell, I can either keep recompiling a PostScript file and watch<br>> it with a gv-like widget (which I'd need to write, god help me) or mirror
<br>> the plot using Cairo and use the command line routines to generate<br>> PostScript at the end. I'd be grateful for any suggestions.<br><br>I don't think there would be any advantage to going from your current
<br>code, through PostScript, then through some not-yet-existing code that<br>would generate cairo calls from the PostScript content.<br><br>That would involve a pile of code that doesn't exist yet, and wouldn't<br>
necessarily be as efficient as you'd like anyway.<br><br>So much better would be to just write your code to call cairo itself,<br>(and as you say, it mirrors the PostScript operators quite well, so it<br>shouldn't be too difficult).
<br><br>And once you have that, you might even find that you can throw away<br>your current PostScript-generating code and let cairo take care of<br>that part of the problem as well.<br><br>Let us know how things go or if you need any further help.