use GD::Graph::lines; my $my_graph = new GD::Graph::lines(); $my_graph->set( x_label => 'Label X', y_label => 'Label Y', title => 'Your Title');