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

axes tick labels are not updated after changing x or y #127

Open
abast opened this issue May 29, 2024 · 3 comments
Open

axes tick labels are not updated after changing x or y #127

abast opened this issue May 29, 2024 · 3 comments

Comments

@abast
Copy link

abast commented May 29, 2024

jscatter.__version__ 
>'0.15.1'
# create data frame with 3 columns that require different scaling
df = pd.DataFrame([[1,2,3],[1,2,3],[10,20,100]], index = ['a', 'b', 'c']).T
# initial scatter plot is rendered correctly
s = Scatter(data = df, x = 'a', y = 'b')
s.show()

initial scatter plot is rendered correctly
image

Afterwards, change x to column c. This does not update the axis, resulting in an incorrect plot:

s.x('c')

After changing x to column c, the xticks are not updated and are incorrect.
image

@flekschas
Copy link
Owner

Already fixed in #125 :)

@flekschas
Copy link
Owner

But thanks a lot for reporting! 🙏 I'll merge the bug fix PR today and should be able to cut a release with the fixes soon.

@abast
Copy link
Author

abast commented May 29, 2024

Fantastic!

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