Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

The previous posters gave excellent input. Allow me to expand and enhance. I recently put quite a bit of time into understanding gnuplot. Be warned that the options available to you in a graphics window are different than those that are available when you print to a file. This, and the non-orthogonal arrangement of options, caused my quite a lot of consternation. I eventually decided gnuplot did not suit my data set so I ended up switching back to GD and it's offspring. Now I'm much happier.

I case you wind up going that route, here is a perl script to launch gnuplot and feed it a list of commands. The commands generate a png file.

#!/usr/bin/perl # # ptoplot.pl # use strict; use warnings; my $output_file = "graphics/plot1"; my $cmd = '| gnuplot - 2>&1'; open PLOT, "$cmd" or die; while (<DATA>) { print PLOT "$_"; } qx("sync"); __DATA__ set terminal png medium color picsize 800 600 set output "graphics/plot1" set title 'Splot of file plot.dat' set style data dots # set hidden3d # set data palette set contour base set zlabel 'amplitude' splot "graphics/plot.dat" matrix with lines show output


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

In reply to Re: CGI modules for plotting & graphing by starbolin
in thread CGI modules for plotting & graphing by ITmajor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (9)
    As of 2015-07-29 23:44 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (269 votes), past polls