Keno / SIUnits.jl

Efficient unit-checked computation
Other
70 stars 26 forks source link

Make SIUnits compatible with Gadfly #67

Closed mdavezac closed 9 years ago

mdavezac commented 9 years ago

The point is to be able to plot quantities with units:

using Gadfly
using SIUnits
using SIUnits.Shorthand
x = [1:16]m
plot(x=x, y=x.*x)

The example above issues warnings about function clashes with a * in Compose and isless in DualNumbers, both used by Gadfly.

This pull-request corrects both issues by declaring the functions with more specific types.

This pull-request would close #19.

ssfrr commented 9 years ago

LGTM