Skip to content

Commit

Permalink
Potential fix for histogram unit label
Browse files Browse the repository at this point in the history
  • Loading branch information
briochemc committed Feb 24, 2020
1 parent 8666789 commit 1ffc4b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "UnitfulRecipes"
uuid = "42071c24-d89e-48dd-8a24-8a12d9b8861f"
authors = ["Jan Weidner"]
version = "0.1.6"
version = "0.1.7"

[deps]
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
Expand Down
6 changes: 5 additions & 1 deletion src/UnitfulRecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ key_unit(axis) = Symbol("xyz"[axis], "unit")

function recipe!(attr, arr)
fixscatterattributes!(attr)
resolve_axis!(attr, arr, 2)
if attr[:seriestype] == :histogram
resolve_axis!(attr, arr, 1)
else
resolve_axis!(attr, arr, 2)
end
end

function recipe!(attr, arrs...)
Expand Down

0 comments on commit 1ffc4b6

Please sign in to comment.