<div dir="ltr">What I meant was:<div><br></div><div><div>import Graphics.EasyPlot</div><div>tData = [ (1,2), (2,3), (3,1), (4,5), (5,3), (6,1) ]</div><div>main = do plot' [Interactive]  Windows $ Data2D [Title "Demo Title"] [] tData</div></div><div><br></div><div>this should work, but it keeps gnuplot open (so you have to type "quit" on the terminal).</div><div>(I think there is a difference between the Unix and Windows versions for Gnuplot; I had the same problem when I used gnuplot in C programs)</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-11 15:42 GMT+02:00 Ut Primum <span dir="ltr"><<a href="mailto:utprimum@gmail.com" target="_blank">utprimum@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Maybe you could try with plot'</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">Il ven 11 mag 2018, 15:11 Gregory Guthrie <<a href="mailto:guthrie@mum.edu" target="_blank">guthrie@mum.edu</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks; good idea - but nope.<br>
<br>
I'd file a report to EasyPlot, but not sure where to do that.<br>
<br>
Older discussions on this issue note that there is a "persist" option for gnuplot, but I didn't yet see how to pass that to try it.<br>
<br>
-----Original Message-----<br>
<br>
<br>
My first hunch was that, since the program ends right after plotting, it cleans up the plot window and exits. But trying it on an X11 system, I got a persistent window despite the program exiting. That may be a difference between Unix and Windows child process handling; I don't have a Windows machine handy right now to test, but you could try this:<br>
<br>
main = do<br>
  plot Windows $ Data2D [Title "Demo Title"] [] tData<br>
  _ <- getLine<br>
  return ()<br>
<br>
If that doesn't fix it, my only guess is there's either a difference between the Unix and Windows versions of gnuplot, or a bug in easyplot's Windows handling.<br>
______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" rel="noreferrer" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
</blockquote></div></div></div></blockquote></div><br></div>