in reply to Two questions for GD::Graph
As for the grid, maybe you want long_ticks? (or x_long_ticks and y_long_ticks to set them separately)
I'm not sure if you can print the labels slanted (actually, I'm afraid you can't without hacking the source1), but for long labels there's x_labels_vertical.
___
1 the idea would be to change $angle in the following snippet:
if (defined $text) { $self->{gdta_x_axis}->set_text($text); my $angle = 0; if ($self->{x_labels_vertical}) { $self->{gdta_x_axis}->set_align('bottom', 'center'); $angle = PI/2; } else { $self->{gdta_x_axis}->set_align('center', 'right'); } $self->{gdta_x_axis}->draw($x - $self->{axis_space}, $y, $ +angle); }
(untested)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Two questions for GD::Graph
by expresspotato (Beadle) on Jan 13, 2011 at 15:43 UTC | |
by Anonyrnous Monk (Hermit) on Jan 13, 2011 at 16:39 UTC |