Lego Plot how to?


#1

How to produce a lego plot (e.g. a histogram with 2d bins) in julia? See here for example plots.


#3

Matplotlib supports this, so you can use PyPlot. For example, I adapted this Matplotlib example to:

using PyPlot
x = (0:3)' .* ones(5)
y = ones(4)' .* (0:4)
x = reshape(x, length(x))
y = reshape(y, length(y))
z = x + y
bar3D(x, y, z*0, 1, 1, z)
title("bar3D demo")

(I find the Matplotlib bar3d interface a little weird.)
image


#4

Can you just use surface?


#5

It is not ideal, but it is a possiblity


#6

Use the plotlyjs() backend to make it interactive and you have a super solution.