Hi Puneet,
For animations and antialiasing, I went the postscript route and
although it's more work, it does very well for me. I've listed my
prescription for using 'convert' with suitable command line tweaks
below.
Cheers,
Matt
------------------------------
Even though PGPLOT has the option to write out png or gifs, you should
write out the images using the imag0001.ps/cps option, instead of \xs.
The vector format of this output allows easy rescaling of the data
without the need to re-run your simulations.
Use ImageMagick to convert your postscript files into jpeg files with
high quality:
convert -density 200 -rotate 90 im01200.ps -quality 100 t1.png
the -density must be before the ps file for it to work, otherwise the
image looks of very low quality.
...or with a command line in bash:
for i in *.ps; do convert -density 200 -rotate 90 -quality 100 $i
${i%.ps}.jpg; done
ALSO add -gamma 1.5 to brighten up a dark image.
The second step with all these images is to use ffmpeg to encode to a
video file:
ffmpeg -i file:im%03d00.jpg -b 1024k movie.mp4
Increase the -b bitrate option to get better image quality.
In the MacBook, you have to transfer the movies into your "Movies"
folder before you can pick them up in Keynote! Odd behaviour...
NOTE this command will quietly fail if the numbers of the input files
are not in strict increasing numerical sequence.
On Thu, Aug 26, 2010 at 11:00 PM, P Kishor <[email protected]> wrote:
> I am thoroughly enjoying David Mertens' PLplot talk (thanks David... I
> still owe you a beer. Just come up to Madison before it gets cold).
> But two questions, I have --
>
> 1. Per PLplot docs, png output has anti-aliased text but not
> anti-aliased lines. Needless to say, lines look crummy. I want these
> plots for web output, so postscript is not an option. Of course, I
> could create postscript and then convert to png, but then, I would be
> doing the work, not PDL. SVG creates great looking output, but the
> files are about 10 times bigger. Suggestions?
>
> 2. David's talk mentions that plotting mem device can be used to
> create "animations," but then, he cruelly neglects to give an example
> of how to do so. Is there an example of creating animations with PDL?
>
> Corollary to #2 above, I am trying to plot time series data... showing
> landuse change over time. So, ideally I would want a time series of
> images (showing the landuse change) and a chart of certain values
> plotted against time with some kind of animation coordinated with the
> time lapse images. Suggestions?
>
>
> --
> Puneet Kishor
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
>
--
Matthew Kenworthy / Assistant Professor / Leiden Observatory
Niels Bohrweg 2 (#463) / P.O. Box 9513 / 2300 RA Leiden / NL
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl