I am now in the right track. Thanks for the help. By the way you can change 
avconv by ffmpeg.

Best
Jorge

On Sunday, August 12, 2018 at 12:35:52 AM UTC-3, Brent Yorgey wrote:
>
> Sorry, I cannot run the program since my Linux distro (Ubuntu bionic) does 
> not seem to have 'avconv'.  But in any case I think I now have a better 
> idea what you are trying to do.  For making animations in this case I 
> recommend the simplest approach, which is to use the 'animatedGif' function 
> from diagrams-rasterific: 
> http://hackage.haskell.org/package/diagrams-rasterific-1.4.1/docs/Diagrams-Backend-Rasterific.html#v:animatedGif
>  For 
> drawing function plots, you can simply use 
> https://diagrams.github.io/haddock/diagrams-lib/Diagrams-CubicSpline.html#v:cubicSpline
>  on 
> a list of points sampled from the function.
>
> -Brent
>
> On Sat, Aug 11, 2018 at 9:46 AM Jorge Devoto <jorge.a...@gmail.com 
> <javascript:>> wrote:
>
>> Hi
>>
>> The function H t x takes two real numbers and return a real number. The 
>> python program is attached. You can run it with "python heatsim.py"and it 
>> produces
>> a mp4 file called "im5.mp4"
>>
>> Thanks for the help
>>
>> Jorge
>>
>>
>> On Friday, August 10, 2018 at 5:43:52 PM UTC-3, Brent Yorgey wrote:
>>
>>> Hi Jorge,
>>>
>>> (I have sent this to diagrams-discuss again, let's keep the discussion 
>>> on the mailing list so that others can also chime in if they have anything 
>>> to add, or learn from whatever is said.)
>>>
>>> I am still not quite sure I am understanding what you want to do.  What 
>>> kind of function is H?  I guess t is a real number?  What type is x?  And 
>>> what type does H return?  Maybe sending the python program as an attachment 
>>> would be helpful (please also send clear instructions on how to run it).
>>>
>>> -Brent
>>>
>> On Fri, Aug 10, 2018 at 2:56 PM Jorge Devoto <jorge.a...@gmail.com> 
>>> wrote:
>>>
>> I have a function H t x, The variable t is time and the variable x 
>>>> denotes ponts. I want to make 
>>>> an animation taking a series of times t_0 < t_1, < .... etc and 
>>>> plotting the sequence of functions
>>>> H t_k x as functions of x. I have a program in python to do this but I 
>>>> would like to learn how to do
>>>> it in Haskell. I can send you the python program if this helps-
>>>>
>>>> Thanks for the answer
>>>>
>>>> Best 
>>>> Jorge
>>>>
>>>>
>>>>
>>>> On Fri, 10 Aug 2018 at 12:39, Brent Yorgey <byo...@gmail.com> wrote:
>>>>
>>> Hi Jorge,
>>>>>
>>>>> I am not sure I understand what you mean by "evolution of the heath". 
>>>>> Can you elaborate, or give an example?
>>>>>
>>>>> -Brent
>>>>>
>>>>> On Fri, Aug 10, 2018, 9:47 AM Jorge Devoto <jorge.a...@gmail.com> 
>>>>> wrote:
>>>>>
>>>> Hello
>>>>>>
>>>>>> I am trying to make a simulation of the evolution of the heath
>>>>>> using diagrams with animations. I can not find any example.
>>>>>>
>>>>>> Could anybody tell me where can I find examples?
>>>>>>
>>>>>> Any help is welcomed.
>>>>>>
>>>>>> Thanks in advanced.
>>>>>>
>>>>>> Jorge
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "diagrams-discuss" group.
>>>>>>
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>>> an email to diagrams-discu...@googlegroups.com.
>>>>>
>>>>>
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "diagrams-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to diagrams-discu...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"diagrams-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to diagrams-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to