Skip to content

Commit

Permalink
fix bar for unsorted x input
Browse files Browse the repository at this point in the history
  • Loading branch information
daschw committed Mar 23, 2021
1 parent 9fc1d57 commit a50661d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ end
bw = plotattributes[:bar_width]
hw = if bw === nothing
if nx > 1
0.5 * _bar_width * ignorenan_minimum(filter(x -> x > 0, diff(procx)))
0.5 * _bar_width * ignorenan_minimum(filter(x -> x > 0, diff(sort(procx))))
else
0.5 * _bar_width
end
Expand Down

0 comments on commit a50661d

Please sign in to comment.