mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-25 01:12:16 +01:00
9 lines
204 B
PHP
9 lines
204 B
PHP
<?php
|
|
require dirname(__DIR__, 2) . '/vendor/autoload.php';
|
|
$plt = python\matplotlib\pyplot::import();
|
|
|
|
$x = new PyList([1, 2, 3, 4]);
|
|
$y = new PyList([30, 20, 50, 60]);
|
|
$plt->plot($x, $y);
|
|
$plt->show();
|