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

Whisker width on error bars does not work as expected on log scale plot. #3005

Closed
JamieMair opened this issue Jun 14, 2023 · 1 comment · Fixed by #3012
Closed

Whisker width on error bars does not work as expected on log scale plot. #3005

JamieMair opened this issue Jun 14, 2023 · 1 comment · Fixed by #3012
Labels
(log) scale Makie Backend independent issues (Makie core)

Comments

@JamieMair
Copy link

I would like to display error bars on my graph which has the x axis plotted on a log scale. Choosing a large enough whisker width does allow them to show up, however, all whisker widths are of different sizes for each point, shown in below MWE (generated using CairoMakie):

f = Figure()
ax = Axis(f[1,1], xlabel="n", xscale=log10)
ns = 2 .^ 1:8
ys = sin.(ns)
errors = abs.(ys) ./ 10

errorbars!(ax, ns, ys, errors; whiskerwidth=100)
scatter!(ax, ns, ys)
display(f)

Result:
temp

How can one get constant width whiskers for the errorbars?

Version Info

Makie: [13f3f980] CairoMakie v0.10.6
Julia: v1.9.1
OS: Windows 11

@JamieMair
Copy link
Author

Just realised this is a duplicate of #1455

@asinghvi17 asinghvi17 added the Makie Backend independent issues (Makie core) label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(log) scale Makie Backend independent issues (Makie core)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants