From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Simon Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Sun, 27 Nov 2016 08:35:24 +0000 Message-Id: <1B0FE8DB-79FE-4005-A647-08701C1D1876@quintile.net> References: <5A3F1C68-FA3A-495B-971B-37CBBCB37F2D@gmail.com> In-Reply-To: <5A3F1C68-FA3A-495B-971B-37CBBCB37F2D@gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Using plot(1) Topicbox-Message-UUID: af540682-ead9-11e9-9d60-3106f5b1d025 hi, not sure what you mean by pipe the output, if you want to save the graph you need to do that by grabbing the window, there could be things like gifpl= ot which render the plot command stream into a gif, but it doesn't (yet). i am pretty sure graph has a "don't clear the screen" option if that will do= for you, however my suspicion is that if you close and reopen the stream to plot it w= ill clear and redraw the screen. i thing (guess) that you would need to send all= your plot commands in a single stream. steve > On 27 Nov 2016, at 03:03, Chris McGee wrote: >=20 > Hi All, >=20 > I=E2=80=99m trying graph and plot out. I have some questions. >=20 > Is there a way to pipe the output of plot or do I need to pull that out of= the screen/window buffer? Also, is there a way to plot on top of an existin= g image? >=20 > I tried making a simple plot routine to draw a red unit circle with x and y= axes. The lines are drawing fine, but the circle is completely cut off exce= pt for a hint of the top-most and bottom-most edges. Here=E2=80=99s the rout= ine that I=E2=80=99m using. Is there something obvious that I=E2=80=99m doin= g wrong? >=20 > o > ra -1.0 -1.0 1.0 1.0 > e > co r > cf r > di 0.0 0.0 1.0 > co k > li 0.0 -1.0 0.0 1.0 > li -1.0 0.0 1.0 0.0 > cl >=20 > Thanks, > Chris