Mattriks

Results 171 comments of Mattriks

I can make the above example work like so: ```julia using Gadfly, Gadfly.Stat.KernelDensity Gadfly.evalmapping(source::UnivariateKDE, arg::Function) = arg(source) Gadfly.evalmapping(source::UnivariateKDE, arg::Symbol) = getfield(source, arg) maximum_density(d::UnivariateKDE) = [d.x[argmax(d.density)]] data = randn(100) plot(kde(data), x=:x,...

The histogram could be done like this: ``` p1 = plot(x=gray.(img1), Geom.histogram(density=true)) ``` What plot layout are you trying to achieve? (see also #1169)

Yes bitmaps in Cairo backends not supported in Compose, but see GiovineItalia/Compose.jl#140, GiovineItalia/Compose.jl#141

Currently `Bools` are treated as discrete variables, and the first discrete category starts at 1 (as you show above). You can change to a numeric axis by doing: ``` plot(x=X,...

For Gadfly, you can write custom statistics (#894): ```julia module stat using Distances, Gadfly struct HeatMapStatistic

Here's the dendrograms: ```julia # module stat # add these lines to module stat above using Compose, Clustering, StatsBase PositionedGuide = Gadfly.Guide.PositionedGuide top_guide_position = Gadfly.Guide.top_guide_position right_guide_position = Gadfly.Guide.right_guide_position function branches(hc::Hclust,...

Checkout [Heatmap.jl](https://github.com/Mattriks/Heatmap.jl)! Note this is a wip (and currently there are issues to be fixed).

@NicholasWMRitchie Great that you have found the source of the issue! This issue (also #1454) does seem to relate to another package unnecessarily overloading `Base.convert`, since things work as expected...

The current design is to use `bincount` with `limits` (`?Stat.histogram`). But somewhere something went wrong with limits ([see this post](https://github.com/GiovineItalia/Gadfly.jl/issues/1472#issuecomment-680311784)), so fixing that is a more pressing issue.

Try e.g. ```draw(PNG(), p)``` where p is a plot. In the Gadfly docs, see [Backends](http://gadflyjl.org/stable/man/backends/).