palettes notebook
This commit is contained in:
parent
f291454ccb
commit
5e8abea222
File diff suppressed because one or more lines are too long
@ -589,7 +589,7 @@ function Base.display(::PlotsDisplay, subplt::Subplot{PyPlotPackage})
|
|||||||
end
|
end
|
||||||
|
|
||||||
# allow for writing any supported mime
|
# 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})
|
@eval function Base.writemime(io::IO, ::$mime, plt::PlottingObject{PyPlotPackage})
|
||||||
finalizePlot(plt)
|
finalizePlot(plt)
|
||||||
writemime(io, $mime(), getfig(plt.o))
|
writemime(io, $mime(), getfig(plt.o))
|
||||||
|
|||||||
@ -177,7 +177,7 @@ sortedkeys(d::Dict) = sort(collect(keys(d)))
|
|||||||
function fakedata(sz...)
|
function fakedata(sz...)
|
||||||
y = zeros(sz...)
|
y = zeros(sz...)
|
||||||
for r in 2:size(y,1)
|
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
|
end
|
||||||
y
|
y
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user