-
-
Notifications
You must be signed in to change notification settings - Fork 358
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 failure with log xscale
#833
Comments
@mkborregaard yes, I think at some point something will have to be done to improve the automatic axis limits. But that'll have to be recipe-independent, on a deeper level, I think. For now, this works:
|
I played with it for an hour or 2 today - this #835 doesn't solve the problem but adresses the general issue of widening, which is now only turned on for scatter seriestypes, and not for log scales. |
At leat if they only specify the number of bins, instead of giving a precise binning specification. I like the idea, I can implement that fairly easily, I think. I don't think normalization would be a problem - the histogram would be normalized regarding it's integral in linear space, of course. But I think if the user wants the normalization to be done with the log values of the x-axis, they actually should do |
quite so |
Maybe this could be helped by simply replacing 0 with NaN for the log scales. |
Sorry this has been stale for so long - I'll try to get on it, again. |
cf #1864 |
@oschulz last time I bumped this issue was two years ago, so I hope it's OK I bump it again? |
Oh, yes, definitely! |
So you're going to remote-fix it at the vizcon? |
Haha, not sure - I recently god some additional manpower though, so maybe I can delegate it. :-) |
I think I got it fixed with #3619, can't reproduce. |
If I try
I get
The problem seems to be that Plots seeks to automatically widen the x axis, which means that the left x axis limit (
amin
here : https://github.com/JuliaPlots/Plots.jl/blob/master/src/axes.jl#L186) becomes negative. Here,amin
isaxis_limits(axis)[1]
andsf
is the functionlog10
.@oschulz that little fix on log scales on axes turned out to bring a lot with it – which is probably one of the reasons it didn't work before. But it will be so awesome when it finally works :-)
The text was updated successfully, but these errors were encountered: