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. Re: EasyPlot on Windows (Gregory Guthrie)
2. Re: EasyPlot on Windows (Ut Primum)
3. Re: Graph path (mike h)
4. Re: EasyPlot on Windows (Ut Primum)
----------------------------------------------------------------------
Message: 1
Date: Fri, 11 May 2018 13:10:28 +0000
From: Gregory Guthrie <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Re: [Haskell-beginners] EasyPlot on Windows
Message-ID:
<cy1pr0301mb1532e2dda369d89582df957ca5...@cy1pr0301mb1532.namprd03.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"
Thanks; good idea - but nope.
I'd file a report to EasyPlot, but not sure where to do that.
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.
-----Original Message-----
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.
------------------------------
Message: 2
Date: Fri, 11 May 2018 15:42:02 +0200
From: Ut Primum <[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:
<canjdmkljnponnqaocpdaxx13wmgw0tx7euyxcr+qvi6n951...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Maybe you could try with plot'
Il ven 11 mag 2018, 15:11 Gregory Guthrie <[email protected]> ha scritto:
> Thanks; good idea - but nope.
>
> I'd file a report to EasyPlot, but not sure where to do that.
>
> 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.
>
> -----Original Message-----
>
>
> 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.
> _______________________________________________
> 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/20180511/80843a3c/attachment-0001.html>
------------------------------
Message: 3
Date: Fri, 11 May 2018 17:25:50 +0100
From: mike h <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Graph path
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
thanks Henk-Jan
Mike
> On 9 May 2018, at 19:46, Henk-Jan van Tuyl <[email protected]> wrote:
>
>
> Maybe
> Structuring Depth-First Search Algorithms in Haskell
>
> https://galois.com/wp-content/uploads/2014/08/pub_JL_StructuringDFSAlgorithms.pdf
> can be of any help? (It's not my field of expertise.)
>
> Since you haven't received any answer for several days on this mailing
> list, you might ask this question again on the Haskell Café mailing list,
> there are more people reading that list.
>
> Regards,
> Henk-Jan van Tuyl
>
>
> On Sat, 05 May 2018 18:50:14 +0200, mike h <[email protected]>
> wrote:
>
>> Does anyone know of a good description of the algorithm to visit (if
>> possible) each node in a graph? I can find a few links that describe the
>> imperative way of doing it but I struggle converting to functional style
>
> --
> Message from Stanford University:
>
> Folding@home
>
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
> --
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
Message: 4
Date: Fri, 11 May 2018 21:06:16 +0200
From: Ut Primum <[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:
<canjdmk+_ngavvvo9rpbupmcsvnbzfdc0+au9drf88nbju_w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
What I meant was:
import Graphics.EasyPlot
tData = [ (1,2), (2,3), (3,1), (4,5), (5,3), (6,1) ]
main = do plot' [Interactive] Windows $ Data2D [Title "Demo Title"] []
tData
this should work, but it keeps gnuplot open (so you have to type "quit" on
the terminal).
(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)
2018-05-11 15:42 GMT+02:00 Ut Primum <[email protected]>:
> Maybe you could try with plot'
>
> Il ven 11 mag 2018, 15:11 Gregory Guthrie <[email protected]> ha scritto:
>
>> Thanks; good idea - but nope.
>>
>> I'd file a report to EasyPlot, but not sure where to do that.
>>
>> 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.
>>
>> -----Original Message-----
>>
>>
>> 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.
>> _______________________________________________
>> 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/20180511/36fb7a1e/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 4
*****************************************