@@ -80,7 +80,7 @@ composer require macocci7/php-scatterplot
8080
8181 $sp = new Scatterplot();
8282 $sp->layers($layers)
83- ->create(' img/BasicUsage.png');
83+ ->create(__DIR__ . '/ img/BasicUsage.png');
8484 ```
8585
8686- Result: [examples/img/BasicUsage.png](examples/img/BasicUsage.png)
@@ -138,7 +138,7 @@ composer require macocci7/php-scatterplot
138138 ->labelX('Data X')
139139 ->labelY('Data Y')
140140 ->caption('Using Layers')
141- ->create(' img/UsingLayers.png');
141+ ->create(__DIR__ . '/ img/UsingLayers.png');
142142 ```
143143
144144- Result: [examples/img/UsingLayers.png](examples/img/UsingLayers.png)
@@ -206,7 +206,7 @@ composer require macocci7/php-scatterplot
206206 ->labelY('DATA Y')
207207 ->caption('SCATTER PLOT')
208208 ->legends($legends)
209- ->create(' img/AdjustDisplayByMethods.png');
209+ ->create(__DIR__ . '/ img/AdjustDisplayByMethods.png');
210210 ```
211211
212212- Result: [examples/img/AdjustDisplayByMethods.png](examples/img/AdjustDisplayByMethods.png)
@@ -357,8 +357,8 @@ Second, Code PHP like this:
357357
358358 $sp = new Scatterplot();
359359 $sp->layers($layers)
360- ->config(' AdjustDisplayByNeon.neon')
361- ->create(' img/AdjustDisplayByNeon.png');
360+ ->config(__DIR__ . '/ AdjustDisplayByNeon.neon')
361+ ->create(__DIR__ . '/ img/AdjustDisplayByNeon.png');
362362 ```
363363
364364Then, run the PHP code.
@@ -416,7 +416,7 @@ Then, run the PHP code.
416416 'yLimitUpper' => 12,
417417 'yLimitLower' => 0,
418418 'plotDiameter' => 6,
419- //'fontPath' => ' fonts/ipaexg.ttf', // IPA ex Gothic 00401
419+ //'fontPath' => __DIR__ . '/ fonts/ipaexg.ttf', // IPA ex Gothic 00401
420420 //'fontSize' => 16,
421421 //'fontColor' => '#333333',
422422 'referenceLineX' => true,
@@ -467,7 +467,7 @@ Then, run the PHP code.
467467 $sp = new Scatterplot();
468468 $sp->layers($layers)
469469 ->config($conf)
470- ->create(' img/AdjustDisplayByArray.png');
470+ ->create(__DIR__ . '/ img/AdjustDisplayByArray.png');
471471 ```
472472
473473- Result: [examples/img/AdjustDisplayByArray.png](examples/img/AdjustDisplayByArray.png)
@@ -506,12 +506,12 @@ Then, run the PHP code.
506506
507507 $sp = new Scatterplot();
508508 $sp->layers($layers)
509- ->config(' AdjustDisplayByNeon.neon')
509+ ->config(__DIR__ . '/ AdjustDisplayByNeon.neon')
510510 ->config([
511511 // This results in transparent backgournd
512512 'canvasBackgroundColor' => null,
513513 ])
514- ->create(' img/TransparentBackground.png');
514+ ->create(__DIR__ . '/ img/TransparentBackground.png');
515515 ```
516516
517517- Result: [examples/img/TransparentBackground.png](examples/img/TransparentBackground.png)
@@ -662,4 +662,4 @@ Then, run the PHP code.
662662
663663***
664664
665- Copyright 2023 - 2025 macocci7.
665+ Copyright 2023 - 2026 macocci7.
0 commit comments