Fix the casing of the svg color MediumAquamarine in StatisticalPlots.pl.#1446
Open
drgrice1 wants to merge 1 commit into
Open
Fix the casing of the svg color MediumAquamarine in StatisticalPlots.pl.#1446drgrice1 wants to merge 1 commit into
MediumAquamarine in StatisticalPlots.pl.#1446drgrice1 wants to merge 1 commit into
Conversation
…ts.pl`.
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 openwebwork#1374, but I seem to
have missed this one.
somiaj
approved these changes
Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Although JSXGraph is lenient with this, LaTeX and TikZ are not. So if you use the
greenscolor 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:
I thought I had fixed all of these in my changes to #1374, but I seem to have missed this one.
It seems my editor's format on save also removed some spaces at the ends of lines in the POD that @pstaabp left in there.