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

Errorbar caps following markershape problematic #4476

Closed
BeastyBlacksmith opened this issue Oct 27, 2022 · 0 comments · Fixed by #4499
Closed

Errorbar caps following markershape problematic #4476

BeastyBlacksmith opened this issue Oct 27, 2022 · 0 comments · Fixed by #4499

Comments

@BeastyBlacksmith
Copy link
Member

BeastyBlacksmith commented Oct 27, 2022

Copying from Slack:

If I try to choose the marker of a scatter plot with markershape=:foo, then this also changes the marker shape of my error bars, which is super undesirable. Is there a way in Plots.jl to just change the shape of the scatter plot’s points’ marks?

MWE1:

julia> using Plots, PGFPlotsX; pgfplotsx()
julia> using Measurements
julia> scatter(title="Foo")
julia> scatter!([(1.0±0.2, 0.9±0.12), (2.2±0.3, 1.8±0.2)]; markershape=:x)

MWE2:

using Plots; plot(1:10,1:10,yerr=0.5,shape=:o)

As expected in Plots 1.32.0, unexpected in 1.35.5 due to the merge of #4362

Me:

plotting MWE2 seperately would look like this
plot(1:10,1:10, shape=:o); yerror!(1:10, 1:10, yerror=0.5, color=1, z_order=:back)
The measurements recipe is another story..

Possible fixes:

  1. Measurements fixes the markershapes to the former defaults
  2. Remove ability to customize errorcaps
  3. introduce new attributes for error markershapes (I tried to argue against something similar in Add option for error bar styles #4360, but thats not necessarily my last word)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants