@@ -89,7 +89,7 @@ composer require macocci7/php-boxplot
8989 $bp = new Boxplot ();
9090
9191 $bp -> setData($data )
92- -> create(' img/BasicUsage.png' );
92+ -> create(__DIR__ . ' / img/BasicUsage.png' );
9393 ` ` `
9494- Result:
9595
@@ -148,7 +148,7 @@ And Setting Caption can be done as follows:
148148 -> labelY(' Score' )
149149 -> caption(' Achievement Test Results in 2023' )
150150 -> legends([' Donald Biden' ])
151- -> create(' img/AdjustDisplayByMethods.png' );
151+ -> create(__DIR__ . ' / img/AdjustDisplayByMethods.png' );
152152 ` ` `
153153
154154- Result:
@@ -245,7 +245,7 @@ Multiple datasets can be displayed side by side at the same time.
245245 -> labelX(' Achievement Test' )
246246 -> labelY(' Score' )
247247 -> caption(' Achievement Test Results in 2023' )
248- -> create(' img/MultipleDataSet.png' );
248+ -> create(__DIR__ . ' / img/MultipleDataSet.png' );
249249 ` ` `
250250
251251- Result: [examples/img/MultipleDataSet.png](examples/img/MultipleDataSet.png)
@@ -380,8 +380,8 @@ Second, Code PHP like this:
380380 use Macocci7\P hpBoxplot\B oxplot;
381381
382382 $bp = new Boxplot ();
383- $bp -> config(' AdjustDisplayByNeon.neon' )
384- -> create(' img/AdjustDisplayByNeon.png' );
383+ $bp -> config(__DIR__ . ' / AdjustDisplayByNeon.neon' )
384+ -> create(__DIR__ . ' / img/AdjustDisplayByNeon.png' );
385385 ` ` `
386386
387387Then, run the PHP Code.
@@ -449,7 +449,7 @@ You can Adjust the Display by using Array.
449449
450450 $bp = new Boxplot ();
451451 $bp -> config($conf )
452- -> create(' img/AdjustDisplayByArray.png' );
452+ -> create(__DIR__ . ' / img/AdjustDisplayByArray.png' );
453453 ` ` `
454454
455455- Result: [examples/img/AdjustDisplayByArray.png](examples/img/AdjustDisplayByArray.png)
@@ -492,7 +492,7 @@ You can set transparent background like this.
492492 -> labelX(' Examination' )
493493 -> labelY(' Score' )
494494 -> caption(' Transparent Background' )
495- -> create(' img/TransparentBackground.png' );
495+ -> create(__DIR__ . ' / img/TransparentBackground.png' );
496496 ` ` `
497497
498498- Result: [examples/img/TransparentBackground.png](examples/img/TransparentBackground.png)
@@ -548,4 +548,4 @@ You can set transparent background like this.
548548
549549***
550550
551- Copyright 2023 - 2025 macocci7
551+ Copyright 2023 - 2026 macocci7
0 commit comments