rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

histogram_description ignores color #2114

Open rtoy opened 2 months ago

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-05 18:42:09 Created by robert_dodier on 2023-02-15 20:16:55 Original: https://sourceforge.net/p/maxima/bugs/4102


histogram_description in descriptive ignores color; the histogram is always red. E.g.:

draw2d (color = blue, histogram_description ([1, 2, 3, 4, 5, 6]));

Inspecting the Gnuplot output file, I see

plot '/tmp/data666684.gnuplot' index 0 notitle w boxes fs solid 0 lw 1 lc rgb '#ff0000' axis x1y1

The rgb specification presumably should reflect color = blue.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-05 18:42:11 Created by robert_dodier on 2023-02-20 09:56:03 Original: https://sourceforge.net/p/maxima/bugs/4102/#b446


rtoy commented 2 months ago

Imported from SourceForge on 2024-07-05 18:42:14 Created by robert_dodier on 2023-02-20 09:56:03 Original: https://sourceforge.net/p/maxima/bugs/4102/#5678


It turns out histogram honors fill_color instead of color. It's a little unintuitive, but there's no way to draw a bar (via Gnuplot boxes) with different colors for the interior and the border, so it seems there's no good reason to pursue it on the Maxima side. In any event, fill_color does the job. Closing this ticket as "won't fix".