<DIV>ed,</DIV>
<DIV>&nbsp;</DIV>
<DIV>sure.&nbsp; it's pretty simple.&nbsp; the data that i am importing from tempfile is the output of "uptime", 41,000 times.</DIV>
<DIV>&nbsp;</DIV>
<DIV>matt</DIV>
<DIV>&nbsp;</DIV>
<DIV>#!/usr/bin/perl -w</DIV>
<DIV>use GD::Graph::bars;<BR>use GD::Graph::colour;</DIV>
<DIV>open (IN,"tempfile");<BR>while (&lt;IN&gt;) {<BR>&nbsp; $_ =~ /load average: (.*?),/;<BR>&nbsp; $data = $1;<BR>&nbsp; push (@undefineme, "");<BR>&nbsp; push (@final, $data);<BR>}</DIV>
<DIV>@data = ( <BR>&nbsp;&nbsp;&nbsp; [@undefineme],<BR>&nbsp;&nbsp;&nbsp; [@final],<BR>);<BR>#y axis is top down.&nbsp; x is bottom accross.<BR>$my_graph = new GD::Graph::bars(1200,400);<BR>$my_graph-&gt;set( <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bgclr =&gt; "white",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transparent =&gt; 0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x_label =&gt; 'Per 30 sec increments',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y_label =&gt; 'load',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title =&gt; "load",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #y_max_value =&gt; 20,&nbsp; default computs from dataset<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #y_tick_number =&gt; 5,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #y_label_skip =&gt; 1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #x_labels_vertical =&gt; 1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fgclr =&gt; "green",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #
 shadows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #bar_spacing =&gt; 2,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #shadow_depth =&gt; 4,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #shadowclr =&gt; 'dred',<BR>);</DIV>
<DIV>my $format = $my_graph-&gt;export_format;<BR>open(IMG,"&gt;load.png") or die $!;<BR>binmode IMG;<BR>print IMG $my_graph-&gt;plot(\@data)-&gt;png;<BR><BR><B><I>Ed Summers &lt;ehs@pobox.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Wed, Mar 10, 2004 at 09:38:09AM -0800, matt boex wrote:<BR>&gt; Can't call method "png" on an undefined value ....<BR><BR>Can we see the code? While it's alot of data, I don't think GD::Graph should<BR>have a problem with it.<BR><BR>//Ed<BR>_______________________________________________<BR>Chicago-talk mailing list<BR>Chicago-talk@mail.pm.org<BR>http://mail.pm.org/mailman/listinfo/chicago-talk</BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Search - <a href="http://search.yahoo.com/?fr=ad-mailsig-home">Find what you’re looking for faster.</a>