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&#39;ve been looking into using Common Lisp for the GUI, but I&#39;m not sure how easy it will be to integrate GTK (I&#39;m using cells-gtk) with Cairo (I haven&#39;t looked into it much, but there appears to be a few lisp wrappers) and end up with anything remotely portable --- I&#39;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> &lt;<a href="mailto:cworth@cworth.org">cworth@cworth.org</a>&gt; 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, &quot;Kevin Lynagh&quot; wrote:<br>&gt; Ad far as I can tell, I can either keep recompiling a PostScript file and watch<br>&gt; it with a gv-like widget (which I&#39;d need to write, god help me) or mirror
<br>&gt; the plot using Cairo and use the command line routines to generate<br>&gt; PostScript at the end. I&#39;d be grateful for any suggestions.<br><br>I don&#39;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&#39;t exist yet, and wouldn&#39;t<br>
necessarily be as efficient as you&#39;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&#39;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.
<br><br>-Carl<br><br></blockquote></div><br>