Instead of a useful font, I get the "symbol not found" boxes. The number of boxes is equal to the string length.
This leads me to believe that it is having trouble loading the font. I have looked on the net and been unable to find a sol'n. Other: I would like to put two $graph objects onto the bigger $gd object, but the documentation made it look like I needed to use a file handle, and writing the intermediate .pngs to disk seems like a bit of pointless redundancy. Other other: Antialiasing? Thanks, folks. -pvh --------------------------- CODE FOLLOWS: --------------------------- #Generate a graph. use GD::Graph::lines; use GD::Text; use GD; use POSIX; $graph = GD::Graph::lines->new(800, 600); @data = ([@year], [@speed]); print @data; $graph->set( x_label => 'Time [days]', y_label => 'Direction [degr]', title => 'Direction vs. Time', y_max_value => ceil(10*$maxSpeed)/10, y_tick_number => 8, y_label_skip => 2, x_tick_number => 8, x_label_skip => 1, x_number_format => "%.2d" ); #GD::Text->font_path('C:/Windows/Fonts/'); $graph->set_title_font('Arial.ttf', 12); $graph->set_legend_font(['verdana', 'arial'], 12); my $gd = $graph->plot(\@data); open(IMG, '>file.png') or die $!; binmode IMG; print IMG $gd->png; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]