Closed briochemc closed 3 years ago
FWIW, in this PR I essentially modified fixlims!
a bit to make it more general and work for vectors. I also renamed it as ustripattribute!
, which already existed to strip units of an attribute, except this one has 3 arguments, where the 3rd argument is the prescribed unit to convert to (when stripping the unit of the attribute). For the reminder, this was done so that if a user plots an x
in units of s
(seconds) and adds an xerror
or xlims
in ms
, then the correct conversion (to seconds) is applied.
Overall this actually seems cleaner to me (more Julian — yay multiple dispatch) and more generalizable if someone else comes up with another attribute to add (e.g., ribbons?) 😄
Fixes #42
Output of this MWE from #42
with this PR (tested on Julia 1.6)