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
If you draw a plot with a discrete x-scale and the first geom does not use all x-values and the second geom introduces new values that should be in front of old ones they are added to the end. Example code snippet
VarNames = CategoricalDtype(['x_{}'.format(i) for i in range(10)], ordered = True)
df1 = DataFrame({'x': ['x_1', 'x_2']}).assign(x = lambda df: df['x'].astype(VarNames))
df2 = DataFrame({'x': ['x_0', 'x_2']}).assign(x = lambda df: df['x'].astype(VarNames))
p = ggplot(df1) + geom_point(aes(x = 'x', y = 'x'), size=6)
p = p + geom_point(aes(x = 'x', y = 'x'), data=df2, color = 'red', size = 3)
p
The text was updated successfully, but these errors were encountered:
If you draw a plot with a discrete x-scale and the first geom does not use all x-values and the second geom introduces new values that should be in front of old ones they are added to the end. Example code snippet
The text was updated successfully, but these errors were encountered: