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

hist with logx produces buckets in non-logarithmic scale #1313

Open
david-cortes opened this issue Apr 15, 2024 · 1 comment
Open

hist with logx produces buckets in non-logarithmic scale #1313

david-cortes opened this issue Apr 15, 2024 · 1 comment

Comments

@david-cortes
Copy link

If creating a histogram with logx=True, the buckets will be created in the original scale instead of the logarithmic scale:

import numpy as np, polars as pl
import hvplot.polars
rng = np.random.default_rng(seed=123)
df = pl.DataFrame({
    "x": 10. ** rng.standard_normal(size=100)
})
df.hvplot.hist(logx=True)

image

This should produce buckets like these, but with the x-axis labels and ticks reflecting the original scale:

(
    df
    .with_columns(
        pl.col("x").log10()
    )
    .hvplot.hist()
)

image

@ahuang11
Copy link
Collaborator

I believe this is an HoloViews issue.

Potentially related to: holoviz/holoviews#6145

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