[Tutor] HELP: Creating animation from multiple plots

Joel Goldstick joel.goldstick at gmail.com
Wed Mar 27 17:06:56 CET 2013


On Wed, Mar 27, 2013 at 11:59 AM, Sayan Chatterjee <
sayanchatterjee at gmail.com> wrote:

> Hi Amit,
>
> fo = fopen('fname','r+')
> fo.write("%d   %d",j,counter)
>
>
> Is giving the following error:
>
> File "ZA.py", line 30, in <module>
>     fo = open('fname','r+')
> IOError: [Errno 2] No such file or directory: 'fname'
>
> Where is the mistake?
>

Where is the file called 'fname'?  It must exist and  be in the current
directory

>
> Cheers,
> Sayan
>
>
>
>
>
>
> On 27 March 2013 12:20, Amit Saha <amitsaha.in at gmail.com> wrote:
>
>> On Wed, Mar 27, 2013 at 4:49 PM, Sayan Chatterjee
>> <sayanchatterjee at gmail.com> wrote:
>> > Yes, ffmpeg will do if multiple plots can be generated using
>> mathplotlib .
>> > I'll look up the links you provided and get back to you, if I can't
>> figure
>> > it out. :)
>>
>> Sure, good luck! :)
>>
>>
>> >
>> >
>> >
>> >
>> > On 27 March 2013 12:12, Amit Saha <amitsaha.in at gmail.com> wrote:
>> >>
>> >> On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee
>> >> <sayanchatterjee at gmail.com> wrote:
>> >> > Thanks a lot for your prompt reply.
>> >> >
>> >> > 1. Yes. This is exactly what I wanted. Creating a bunch of data sets
>> and
>> >> > then writing script to plot them using gnuplot, but if something can
>> >> > produce
>> >> > directly 'plots' it will certainly be helpful.
>> >>
>> >> Yes, indeed it is possible. You may want to explore matplotlib a bit.
>> >> You can start with this tutorial [1].
>> >>
>> >> [1] http://www.loria.fr/~rougier/teaching/matplotlib/
>> >>
>> >> >
>> >> > 2. Yes. By stitching them up I meant an animation.Sorry for the
>> >> > ambiguity.
>> >> > Exactly how we can do it Octave.
>> >> >
>> >> > Pls see this link:
>> >> > http://www.krizka.net/2009/11/06/creating-animations-with-octave/
>> >>
>> >> Right, yes, if you see it uses mencoder/ffmpeg to create the
>> >> animation. So, if you save your individual plots and then use one of
>> >> these tools, you should be able to get the animation done.
>> >>
>> >> Matplotlib itself seems to have some Animated plotting capabilities,
>> >> but I haven't had any experience with them.
>> >>
>> >>
>> >> Best,
>> >> Amit.
>> >>
>> >>
>> >> --
>> >> http://amitsaha.github.com/
>> >
>> >
>> >
>> >
>> > --
>> >
>> >
>> >
>> --------------------------------------------------------------------------
>> > Sayan  Chatterjee
>> > Dept. of Physics and Meteorology
>> > IIT Kharagpur
>> > Lal Bahadur Shastry Hall of Residence
>> > Room AB 205
>> > Mob: +91 9874513565
>> > blog: www.blissprofound.blogspot.com
>> >
>> > Volunteer , Padakshep
>> > www.padakshep.org
>>
>>
>>
>> --
>> http://amitsaha.github.com/
>>
>
>
>
> --
>
>
> --------------------------------------------------------------------------
> *Sayan  Chatterjee*
> Dept. of Physics and Meteorology
> IIT Kharagpur
> Lal Bahadur Shastry Hall of Residence
> Room AB 205
> Mob: +91 9874513565
> blog: www.blissprofound.blogspot.com
>
> Volunteer , Padakshep
> www.padakshep.org
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130327/8eeb4ad4/attachment-0001.html>


More information about the Tutor mailing list