-
Notifications
You must be signed in to change notification settings - Fork 10
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
Units from 3rd axis applied to 4th plot #68
Comments
Thank you for the report! I'm having some problems replicating. For one, there's some commae that need to be removed from your MWE, and some library crashes when I try to do a 3d plot here, I probably need to do some installations.
|
Hi, thanks for having a look and the tip about the
Contouring on the Z value, applying dimension and unit to colorbar
Contouring on the desired color values, but they are unitless while the color bar still has
|
If I was to fix this, I would start with these lines: UnitfulRecipes.jl/src/UnitfulRecipes.jl Lines 128 to 135 in d98de3d
I think (without having thought too hard about it) And if that works, adding a |
Now if |
Sorry, I had a think about it and realized it would be more complicated than I previously thought. #70 is the start of an implementation of this. |
Thanks for the update and the work trying to solve it. It looks like this pretty well solves it? Lmk if there's anything you want me to progress |
It solves the individual cases of specifying a |
Ok I'll add this to my TDL. Hopefully I'll have an update one way or another towards the end of the week. |
I have a surface that is drawn in 3D space (length x, y, and z) with a 4th axis, the colorbar, which could be unitless, time, pressure, or some other dimension. The issue is that the colorbar title keeps the units from the 3rd axis (m). If I try to color based on anything other than a unitless number or a length, I get an error. If I could rename the colorbar_title = "Real Title ($real_units)" I would just strip out those units myself, but the other unit stays in so the title would be: "Real Title (kPa) (m)".
I considered rolling my own for this, but I have other elements like the ball being brought into the plot using UnitfulRecipes so I would either have to enforce that everything comes in using the correct units or handle it elegantly or not use UnitfulRecipes for any of it and roll my own for the whole thing.
I've only just started making recipes of my own so when I open the code base it's a little beyond me. I think two potential solutions would be:
Please let me know if I've missed an easy solution or I'd be happy to contribute a solution with a little direction. Thanks!
The text was updated successfully, but these errors were encountered: