Commit 3766685
committed
Fix the casing of the svg color
Although JSXGraph is lenient with this, LaTeX and TikZ are not. So if
you use the `greens` color palette you end up getting the stroke color
for this color in TikZ output. but an aqua marine color for JSXGraph
output.
Here is a MWE for testing this:
```
DOCUMENT();
loadMacros('PGstandard.pl', 'PGML.pl', 'StatisticalPlots.pl', 'PGcourse.pl');
$barPlot = StatPlot(xmin => 0, xmax => 7, ymin => 0, ymax => 10);
$barPlot->add_barplot(
[ 1 .. 6 ],
[ 3, 6, 7, 8, 4, 1 ],
fill_colors => { palette_name => 'greens' }
);
BEGIN_PGML
[<
[<[@ $barPlot->image_type('Tikz'); @]* [!TikZ bar plot!]{$barPlot}{400}>]
[<[@ $barPlot->image_type('JSXGraph'); @]* [!JSXGraph bar plot!]{$barPlot}{400}>]
>]{ [ class => 'd-flex gap-3 flex-wrap' ] }
END_PGML
ENDDOCUMENT();
```
I thought I had fixed all of these in my changes to #1374, but I seem to
have missed this one.MediumAquamarine in StatisticalPlots.pl.1 parent e9238cc commit 3766685
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| |||
0 commit comments