我为学生创建了一个条形图。现在我想要一个截止线,它表明这是低于此的所有内容都是不及格的成绩。Y 轴上第 35 点的水平线是我想要的。有什么建议么?这是我目前拥有的
my $graph = GD::Graph::bars->new(800, 800);
@data = (
["Jack","Jill"],
['30','50'],
);
$graph->set(
x_label => 'Students',
y_label => 'Scores',
title => 'Student Vs. Scores',
y_max_value => 60,
y_tick_number => 8,
y_label_skip => 2
) or die $graph->error;
my $gd = $graph->plot(\@data) or die $graph->error;
open(IMG, '>file.png') or die $!;
binmode IMG;
print IMG $gd->png;