You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I restrict the limits of the plot, the errorbars which would extent outside of the plot region vanish:
plot2 = plot +
ylim(0, 10)
I would expect to still see the errorbars. We often have plots where some points have really small errors, and when the horizontal cross-bar is smaller than the point marker, one cannot distinguish points with vanishing error and from points with extremely large errors.
For reference, this is how Matplotlib does the same plot:
importmatplotlib.pyplotasplimportnumpyasnpx=np.arange(1, 11)
y=xdy=xpl.errorbar(x, y, dy, marker='o', linestyle='none')
pl.ylim(0, 10)
pl.savefig('plot-matplotlib.png')
I would wish that ggplot does this similarly.
The text was updated successfully, but these errors were encountered:
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Jun 8, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ggplot2 version: 3.1.0
When I start with a plot with errorbars, it works just fine:
But when I restrict the limits of the plot, the errorbars which would extent outside of the plot region vanish:
I would expect to still see the errorbars. We often have plots where some points have really small errors, and when the horizontal cross-bar is smaller than the point marker, one cannot distinguish points with vanishing error and from points with extremely large errors.
For reference, this is how Matplotlib does the same plot:
I would wish that ggplot does this similarly.
The text was updated successfully, but these errors were encountered: