palettes notebook

This commit is contained in:
Thomas Breloff 2015-10-20 11:53:02 -04:00
parent f291454ccb
commit 5e8abea222
3 changed files with 464 additions and 310 deletions

File diff suppressed because one or more lines are too long

View File

@ -589,7 +589,7 @@ function Base.display(::PlotsDisplay, subplt::Subplot{PyPlotPackage})
end
# allow for writing any supported mime
for mime in (MIME"image/png", MIME"image/svg+xml", MIME"text/html", MIME"application/pdf", MIME"application/postscript")
for mime in (MIME"image/png", MIME"application/pdf", MIME"application/postscript")
@eval function Base.writemime(io::IO, ::$mime, plt::PlottingObject{PyPlotPackage})
finalizePlot(plt)
writemime(io, $mime(), getfig(plt.o))

View File

@ -177,7 +177,7 @@ sortedkeys(d::Dict) = sort(collect(keys(d)))
function fakedata(sz...)
y = zeros(sz...)
for r in 2:size(y,1)
y[r,:] = 0.9 * y[r-1,:] + randn(size(y,2))'
y[r,:] = 0.95 * y[r-1,:] + randn(size(y,2))'
end
y
end