Skip to content

Plots.jl integration: grouping data leads to wrong errorbars #170

@lukas-weber

Description

@lukas-weber

(Originally I had opened JuliaPlots/Plots.jl#4917, but then I realized the recipe is actually in this repository.)

If you use the group keyword with Measurement data, the errorbars of different data points get silently mixed up:

using Measurements
using Plots

data = range(0, 1, 10)  range(0, 1, 10)
ids = mod.(1:10, 2)

plot(
   plot(data, title="expected errorbars"),
   plot(data, group=ids, title="wrong errorbars")
)

error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions