Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Wise fellow monks!

I wonder if you had experience plotting histograms with gnuplot via Graphics::GnuplotIF.

Until now I am trying with something like this:
use Graphics::GnuplotIF; my $plot = Graphics::GnuplotIF->new ( style => 'histogram', # one of the gnuplot line styles +(see below) title => "$mytitle", # string xlabel => '$myxlabel', # string ylabel => '$myylabel', # string xrange => [@myxrange], # array reference; autoscaling, +if empty yrange => [@myyrange], # array reference; autoscaling, +if empty plot_titles => [ "$titles" ], # array of strings; titles use +d in the legend persist => 0, # let plot windows survive after gnuplot +exits # 0 : close / 1 : survive ); $plot_glacier->gnuplot_plot_xy ( \@x, \@y ); $plot_glacier->gnuplot_pause();


But it does not work (message = "Graphics::GnuplotIF (object 4): problem closing communication to gnuplot").
Histograms are supported in gnuplot since version 4.2, so perhaps it is only that they are not supported in GnuplotIF. I know it can be done with other modules, but right now I am just interested in using GnuploIF to avoid module-code-clutter. Your words will be appreciated!

Thanks in advance,

In reply to histograms with GnuplotIF ? by hda

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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
    Domain Nodelet?
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others lurking in the Monastery: (4)
    As of 2024-07-25 06:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.