【发布时间】:2020-04-08 06:52:18
【问题描述】:
我想在 JPGraph 中有一条带有 Lineplot 的虚线。但是,如果我使用适当的方法,线条会被绘制成白色而不是指定的颜色。
我使用这个代码:
$graph = new Graph($this->graphW, $this->graphH);
...
$lineplot = new LinePlot($this->target_data);
$graph->Add($lineplot);
$lineplot->setLegend($this->lang[15]);
$lineplot->SetStyle('dashed');
$lineplot->setColor('red');
$graph->Stroke();
但是,如果我在代码中添加以下内容:
$lineplot->SetStepStyle();
所以问题是:我如何在没有 StepStyle 的情况下获得虚线,为什么没有 SetpStyle 它不能工作?
【问题讨论】: