如何使用 php 在 Jpgraph 中设置虚线

How to set dotted line in Jpgraph with php

我想用 php 在 jpgraph 中设置虚线,但此时我只用此代码设置标准线:

  $lineplot2 = new LinePlot($pro1, $pro1X);
  $lineplot2->SetStyle("solid");
  $lineplot2->SetWeight(3);
  $lineplot2->SetColor('red');

我可以举例说明如何设置虚线或折线吗?

$lineplot2->SetStyle("dotted");

https://jpgraph.net/download/manuals/classref/LineProperty.html