Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Please check the following:
  1. Type gnuplot --version to check whether gnuplot can be executed.
  2. Check whether the directory /tmp is already full.
  3. Check whether you have write permission of /tmp.

If they are all fine, then you should be able to use at least the basic features of Chart::Gnuplot. Please re-try your original script with expression.ps as output instead (ps format is more basic than png for the module).

You don't need the method ->output($filename) although there is no harm to do so. The output method is useful only in cases where you don't know the output filename yet when you create the chart object.

If you got expression.ps, then it may be the problem of ImageMagick. Please check whether it is installed.

If you don't want to install ImageMagick and if you want to generate png file. You may try:

my $chart = Chart::Gnuplot->new( output => "/home/diffredential/Desktop/expression.png", terminal => "png" );


In reply to Re^3: Newbie using modules by Anonymous Monk
in thread Newbie using modules by diffredential

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
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 studying the Monastery: (5)
As of 2024-04-25 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found