Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. EasyPlot on Windows (Gregory Guthrie)
2. Re: EasyPlot on Windows (Theodore Lief Gannon)
----------------------------------------------------------------------
Message: 1
Date: Thu, 10 May 2018 16:24:08 +0000
From: Gregory Guthrie <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] EasyPlot on Windows
Message-ID:
<cy1pr0301mb15329a40256f827700288434a5...@cy1pr0301mb1532.namprd03.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"
A very simple test program with Graphics.EasyPlot, flashes up a window, but too
fast to see it. There are several old posts on this issue with gnuplot, but I
haven't seen any current solutions.
Example:
import Graphics.EasyPlot
tData = [ (1,2), (2,3), (3,1), (4,5), (5,3), (6,1) ]
main = do plot Windows $ Data2D [Title "Demo Title"] [] tData
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20180510/e88c895e/attachment-0001.html>
------------------------------
Message: 2
Date: Thu, 10 May 2018 14:17:45 -0700
From: Theodore Lief Gannon <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] EasyPlot on Windows
Message-ID:
<CAJoPsuCDUYaA6m6CZuZi2X+rqRANS=gawnjicg70w2oyb6-...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
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:
main = do
plot Windows $ Data2D [Title "Demo Title"] [] tData
_ <- getLine
return ()
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.
On Thu, May 10, 2018 at 9:24 AM, Gregory Guthrie <[email protected]> wrote:
> A very simple test program with Graphics.EasyPlot, flashes up a window,
> but too fast to see it. There are several old posts on this issue with
> gnuplot, but I haven’t seen any current solutions.
>
>
>
> Example:
>
> import Graphics.EasyPlot
>
>
>
> tData = [ (1,2), (2,3), (3,1), (4,5), (5,3), (6,1) ]
>
>
>
> main = do plot Windows $ Data2D [Title "Demo Title"] [] tData
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20180510/8d82eca0/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 119, Issue 3
*****************************************