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

Axis title via labs() breaks the date-time scale #1113

Closed
OLarionova-HORIS opened this issue Jun 13, 2024 · 1 comment
Closed

Axis title via labs() breaks the date-time scale #1113

OLarionova-HORIS opened this issue Jun 13, 2024 · 1 comment
Assignees

Comments

@OLarionova-HORIS
Copy link
Contributor

Example:

import datetime as dt
import numpy as np
from lets_plot import *

LetsPlot.setup_html()

n = 31
np.random.seed(42)

d = [dt.datetime(2021, 1, 1) + dt.timedelta(days=d)
     for d in range(n)]
t = np.random.normal(loc=-5, scale=6, size=n)

p = ggplot({'d': d, 't': t}, aes('d', 't')) + geom_histogram(stat='identity') 
p

Screenshot 2024-06-13 at 18 38 51

Change the x title using labs() function:

p + labs(x="Date")

Screenshot 2024-06-13 at 18 38 56

@alshan alshan added this to the 2024Q2 milestone Jun 14, 2024
@OLarionova-HORIS OLarionova-HORIS self-assigned this Jun 18, 2024
@OLarionova-HORIS
Copy link
Contributor Author

b73477a fixes the issue

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