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

Bad axis labels when using both plot and layer data #327

Closed
ASmirnov-HORIS opened this issue Feb 17, 2021 · 1 comment
Closed

Bad axis labels when using both plot and layer data #327

ASmirnov-HORIS opened this issue Feb 17, 2021 · 1 comment
Assignees

Comments

@ASmirnov-HORIS
Copy link
Collaborator

Consider the following plots:

from lets_plot import *
LetsPlot.setup_html()

data1 = {
    'x': ['a', 'b', 'c'],
    'ymin': [1, 1, 2],
    'ymax': [3, 2, 3],
}
data2 = {
    'x': ['b', 'a', 'c', 'a', 'b', 'c'],
    'y': [2, 1, 3, 3, 1, 2],
}

ggplot(data1) + \
    geom_point(aes(x='x', y='y'), data=data2) + \
    geom_linerange(aes(x='x', ymin='ymin', ymax='ymax'))

ggplot(data1) + \
    geom_point(aes(x='x', y='y'), data=data2) + \
    geom_linerange(aes(x='x', ymin='ymin', ymax='ymax')) + \
    scale_x_discrete(reverse=True)

Here we see:

  • Inconsistent order of axis labels for reverse=True when using both plot and layer data.
  • Invalid axis labels when using both plot and layer data.
  • Unexpected rotation of axis labels for reverse=True when using both plot and layer data.
@alshan alshan added this to the 2021Q2 milestone Mar 26, 2021
@alshan alshan modified the milestones: 2021Q2, 2021Q3 Jun 28, 2021
@alshan alshan self-assigned this Jul 22, 2021
@alshan
Copy link
Collaborator

alshan commented Jul 22, 2021

Was fixed by recent refactorings.

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

No branches or pull requests

2 participants