-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Wrong units #4063
Comments
Why it switches to decimeter is because the default is to automatically switch to the best unit to represent the number range. |
It's one of the base_unit() calls. Makie.jl/src/dim-converts/unitful-integration.jl Lines 14 to 16 in 4c4eaa1
It goes through these 3 in order where in the last one U = (m, s^-1) , so that indexing just grabs m
|
It looks like most of this is for adjusting unit prefixes to the range of numbers given. E.g. changing |
Yeah keeping the user's units seems good. |
Is there an option to do it at the top (or right) of the axes? I mean in the style that MATLAB does power of 10 representations (linear plot, scaled), then putting the units on top of the axis might help (see first image of https://tutorial45.com/matlab-plot-colors-and-styles/) |
Agree, it would be both more familiar to many readers and less cluttered to show units once per axes – #3890. |
You can turn off automatic conversions if you create the conversion manually. It's explained in |
Okay, thanks. I got that working. I still think conversions from 10^-2 through 10^2 should be automatically avoided though. |
The units are wrong.
The text was updated successfully, but these errors were encountered: