Files
phpy/examples/matplotlib/plot.php
2023-12-08 14:37:24 +08:00

8 lines
151 B
PHP

<?php
$plt = PyCore::import("matplotlib.pyplot");
$x = new PyList([1, 2, 3, 4]);
$y = new PyList([30, 20, 50, 60]);
$plt->plot($x, $y);
$plt->show();