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,
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, details, 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, summary, 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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.