I'm trying to do a plot using LineCollection in PyPlot however am having a
hard time converting an example (1
<http://matplotlib.org/examples/pylab_examples/line_collection.html> or 2
<http://matplotlib.org/examples/pylab_examples/line_collection2.html>).
lines = Any[Any[[1.0 2.0]];Any[[3.0 4.0]];Any[[5.0 .06]];Any[[0.0 0.0]]] #
Points
c = Any[Any[1 0 0];Any[0 1 0];Any[0 0 1]] # Color
line_segments = matplotlib[:collections][:LineCollection](lines,colors=c)
fig = figure("Line Collection Example")
ax = axes()
ax[:add_collection](line_segments)
axis("tight")
It doesn't return an errors but I don't see any lines. Any idea what could
be wrong?