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

Categorical scatter plots on symlog-scaled axis #3352

Closed
MaozGelbart opened this issue May 1, 2023 · 0 comments · Fixed by #3440
Closed

Categorical scatter plots on symlog-scaled axis #3352

MaozGelbart opened this issue May 1, 2023 · 0 comments · Fixed by #3440

Comments

@MaozGelbart
Copy link
Contributor

Hi,

On the current dev version (eb2b5a2) and matplotlib 3.7.1, consider the following code that uses stripplot to draw two points on unscaled and symlog-scaled yaxis:

import seaborn as sns
import matplotlib.pyplot as plt

x = [0.1,2]
y = [0.1,5]
fig, axs = plt.subplots(ncols=2)
sns.stripplot(x=x, y=y, ax=axs[0])
axs[0].set_yscale("symlog", base=10, linthresh=1)
axs[1].set_yscale("symlog", base=10, linthresh=1)
sns.stripplot(x=x, y=y, ax=axs[1])
axs[0].set_ylim(0,10**4)
axs[1].set_ylim(0,10**4)
axs[0].set_title("stripplot on unscaled axis")
axs[1].set_title("stripplot on symlog-scaled axis")

image
The plot on the already-scaled yaxis contain values that were not provided. The plot changes (but still erroneous) if I set linthresh to something different (for example if using the linthresh default of 2).
This also happens with pointplot. It works as expected with log-scaled axis or with pure matplotlib scatter calls. Couldn't reproduce using seaborn 0.12.2.

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

Successfully merging a pull request may close this issue.

2 participants