Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lukas-weber opened this issue Jul 24, 2024 · 1 comment
Open

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

lukas-weber opened this issue Jul 24, 2024 · 1 comment

Comments

@lukas-weber
Copy link

(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

@giordano
Copy link
Member

I'm not really sure what's the expected result, I'm not familiar with the group option. Code of the plot recipe is at https://github.com/JuliaPhysics/Measurements.jl/blob/833064e4a4dca58be82ceaaa257d96a6b3708cfe/ext/MeasurementsRecipesBaseExt.jl, PR to fix the issue are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants