Fix BoxPlot legend and rename BoxPlot and BarChart color
to default_color
#97
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.
Fvg on discord noticed that BoxPlots were missing the legend.
Upon further investigation, either some merge was a bit icky, or something was missed when adding in
PlotItemBase
.To fix this i have
BoxPlot::color
withBoxPlot::default_color
, as it was a name collision withPlotItem::color
.BarChart::color
withBarChart::default_color
, as it was a name collision withPlotItem::color
.I know this is a breaking change without a deprication first, but i feel this is better than
going for a deprication firstkeeping that name collision in for longer.PlotItem::name()
function, and theBoxPlot::name
field, as it was incomplete, and is also covered inPlotItemBase
BarChart::default_color
andBoxPlot::default_color
, as it is only read, and only inplot_ui.rs
, and that can be done via our newly not-name-collidingPlotItem::color
.I also noticed there are missing snapshots for the (Charts.png is only the histogram, and only vertical). Barchart and boxplot are missing. But that is worth its own PR.
In any case, with this, i get the expected legend back:
check.sh
locally and it went through.