Re: help with GD module



abcd wrote:
use GD::Graph::bars;
my @data = (
['frogs','fish','toads','rodents'],
[ 8, 3, 1, 2],
);
my $chart = GD::Graph::bars->new(700,500);
$chart->set(title => 'Ostrich diet');
$chart->set_title_font('arialbd', 24);
$chart->set_x_axis_font('arial', 16);
$chart->set_y_axis_font('arial', 16);
my $gd_object = $chart->plot(\@data);


but don't work, only open a cmd windown a nothing else!

Why would you expect it to display the image?


how I can create a window with graphics?

Use the Tk module or save it as a file and use a browser or some
other application, such as a browser, to display it.
.



Relevant Pages

  • Re: 800x600
    ... >>> browser window shrinks you end up with a photo with one word per ... So if you want to display images at a size ...
    (uk.net.web.authoring)
  • Re: PINGY: Web developers
    ... code and it'll display properly on pretty much any browser. ... Fuckwits issue blanket statements like "smart developers use Flash" ... Another good example...drive in theaters. ...
    (alt.2600)
  • Re: Open and process remote page
    ... William Hudson wrote: ... I have toyed with some of the php functions for opening URLs, ... > I need to fully emulate a browser, ... > display the remote page). ...
    (comp.lang.php)
  • Re: Tapble top fusion generator
    ... Any site should be totally readable in any browser." ... if it lacks the required display resoluton. ... to me) a top-of-the line, 19" Mitsubishi monitor, that allowed the ... Now considering that the typical laptop from ...
    (sci.physics.fusion)
  • Re: pdf in java Viewing... Not a good experience
    ... > BUT I need to know the external pdf viewers name ... This code is austensibly to open a url in a browser, but on Windows it will ... static class to display a URL in the system browser. ...
    (comp.lang.java.gui)