In [1]:
using Gadfly
In [2]:
p = eye(5)
#p[end, end] = -1
#spy(p)
p1 = spy(p,
Scale.x_continuous(minvalue=0, maxvalue=6),
Scale.y_continuous(minvalue=0,maxvalue=6))
Out[2]:
In [3]:
p2 = spy(rand(5,5),Scale.color_continuous(minvalue = 0.1, maxvalue = 0.9))
Out[3]:
In [4]:
# and then combining them together...
hstack([p1, p2])
Out[4]:
In [5]:
typeof(p1)
Out[5]:
In [ ]:
# drawing multiple things to the same plot
In [6]:
plot(layer(x=rand(10), y=rand(10), Geom.point),
layer(x=rand(10), y=rand(10), Geom.line))
Out[6]:
In [7]:
# HISTOGRAM
plot(x=rand(100),Geom.histogram)
Out[7]:
In [ ]: