[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Perl GD::



Jeg sidder og laver nogle søjlediagrammer i Perl med GD modulet. 

Dette går for det meste fint. Koden ser således ud:
my @data     = ( sslug@sslug, sslug@sslug );
my $graph = GD::Graph::bars->new( 550, 400 );
my $image = $graph->plot( sslug@sslug ) or die( "Cannot create image $!" );

Når indholdet af @xLabels og @values er:
xLabels: 0;;;180;;;;420;;;600;;;780
values: 551;93;73;94;79;198;145;69;191;279;278;322;162;7
Lister join'et med ";".

Så dumper den med:
Cannot create image Inappropriate ioctl for device at script.pl line XX

men eksempelvis:
xLabels: 0;;;;;;180;;;;;;;420;;;;;;600;;;;;;780
values:35;8;7;3;1;6;8;2;3;3;30;16;3;5;5;5;22;29;62;48;42;59;104;101;48;7

Går fint.. 

Det er nyeste version af GD-modulet på en nyoversat gd-2.0.28 

Nogle gode forslag? Jeg syntes selv at fejlbeskeden er helt "tåget".

Jesper

-- 
./Jesper Krogh, sslug@sslug
Jabber ID: sslug@sslug



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *