140 likes | 353 Views
Plotting in Perl. Yu-Tzu Chou 499440419 Earth Science 103. Geophysics. Needing to do: Graphing Plotting Contours Use: Radan Matlab. Matlab vs Perl. General purpose programming PDL is an extension of Perl
E N D
Plotting in Perl Yu-Tzu Chou 499440419Earth Science 103
Geophysics Needing to do: • Graphing • Plotting • Contours Use: • Radan • Matlab
Matlabvs Perl • General purpose programming • PDL is an extension of Perl • Most syntax differences between Matlab & PDL are because of the Perl foundation
Matlab Perl • Vectors • Matrices • Arrays • Has arrays • Piddle- consists of a series of numbers organized as an N-dimensional data. Terminology
Command Window & IDE Perl: • Does not have IDE • It comes with an interactive shell(use a Perl IDE to develop PDL programs)
Writing PDL programs • One popular IDE for Perl is called Padre. It is cross platform and easy to use • A stand-alone PDL program one must start the program with use PDL • This command imports the PDL module into Perl
Plotting and Graphics • In Perl it relies on the third-party libraries for the 2D or 3D graphing • In Matlab it takes up quite some space for a data and takes time to load
Reference • http://pdl.perl.org/?docs=Graphics/PLplot&title=PDL::Graphics::PLplot • http://plplot.sourceforge.net/download.php • http://my.safaribooksonline.com/book/programming/perl/9781449358280/4dot-charts-and-graphs-with-gd-graph/id845463#X2ludGVybmFsX0h0bWxWaWV3P3htbGlkPTk3ODE0NDkzNTgyODAlMkZpZDg0NTQyMCZxdWVyeT0=