Skip to content

Commit

Permalink
Remove (incorrect) Pango hack (fixed in GiovineItalia/Gadfly.jl#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyun committed Apr 16, 2020
1 parent 21fcaf2 commit b424a44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ findlim(array) = begin
l == u ? (l, l+1) : (l, u)
end

#HACK: add whitespace to make Pango happy and avoid text clipping
label(l, u::Units) = Unitful.isunitless(u) ? " $l " : " $l ($u) "
label(l, u::Units) = Unitful.isunitless(u) ? "$l" : "$l ($u)"

plot(df::DataFrame, x, y; name=nothing, kw...) = plot(df, x, [y]; name=[name], kw...)
plot(df::DataFrame, x, y::Vector; kw...) = plot!(nothing, df, x, y; kw...)
Expand Down

0 comments on commit b424a44

Please sign in to comment.