1 / 13

Graphics in Perl

Graphics in Perl. Bill Dillon. Outline. My history with Perl Work Motivation for Perl graphics Some difficulties Graphing data References and TMTOWTDI. My history with Perl. Consultant developed code-counting script with Perl Replaced 14 C-shell and C programs with one Perl script

kylia
Télécharger la présentation

Graphics in Perl

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphics in Perl Bill Dillon

  2. Outline • My history with Perl • Work Motivation for Perl graphics • Some difficulties • Graphing data • References and TMTOWTDI

  3. My history with Perl • Consultant developed code-counting script with Perl • Replaced 14 C-shell and C programs with one Perl script • Started learning Perl ~1999 • Most work-related coding related to defect tracking and web forms • Replaced 21 C-shell and C programs with one Perl script • Also handy for my astronomy hobby

  4. Extracted Data Query Defect DB Work Motivation for Perl graphics • Defect tracking Web Tables DefectGraphs

  5. Difficulties • Could get basic graphic shapes to work on PC/Active State/Perl 5.6 but … • Could not get line graphs to work but … • Line graphs did work on unix! • Try Perl 5.8?

  6. Line graphs • Show wgd_graph_lines.pl

  7. Bar Charts • my $graph = new GD::Graph::bars();

  8. Pie Charts • my $graph = new GD::Graph::pie();

  9. SS Cyg • One of my hobbies:

  10. WW Ceti • Cataclysmic variable star in action:

  11. Making brightness estimates

  12. The Problem • Graph the light curve of SS Cyg • More than a quarter million data points, covering almost a century! • Excel barfed on the size of this set • Could only graph about 30,000 points at a time • Perl graphics to the rescue! • See graph_jd_mag.pl • View graph

  13. References and TMTOWTDI • Perl Graphics Programming • Shawn Wallace (O’Reilly) • Graphics Programming with Perl • Martien Verbruggen (Manning) • Perl modules for: • PGPLOT • ImageMagick • GIMP • Gnuplot

More Related