regplot and xscale('log') don't get along without xlim
See original GitHub issueHi, When running:
sns.regplot('r', 'in_final_rate', data, ci=None, x_ci=None, logistic=True)
plt.xscale('log')
I get a malformed x-axis.
However, if I add xlim():
sns.regplot('r', 'in_final_rate', data, ci=None, x_ci=None, logistic=True)
plt.xlim(1e-4, 1e-1)
plt.xscale('log')
Then it looks fine.
See notebook in this gist, which also includes a data file.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to scale the x and y axis equally by log in Seaborn?
It would seem your x and y limits aren't the same. That's why it doesn't look linear. Might have to do with 0...
Read more >Control Axis Limits of Plot - Python Graph Gallery
Controlling x and y axis limits of a plot using matplotlib functions plt.xlim() and plt.ylim()
Read more >How to change axes limits in Seaborn? - GeeksforGeeks
Seaborn is a Python data visualization library based on matplotlib. ... bottom: This parameter is the bottom xlim/ylim in data coordinates ...
Read more >Python Seaborn Tutorial For Beginners - DataCamp
This Seaborn tutorial introduces you to the basics of statistical data visualization in Python, from Pandas DataFrames to plot styles.
Read more >Chapter 4. Visualization with Matplotlib - O'Reilly
Matplotlib is a multiplatform data visualization library built on NumPy arrays, ... Though Matplotlib does not have a built-in convenience routine for this ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The log-plot usually looks better if
Something like this should work
Ah, sorry for the confusion! Thanks for the tips 😃