Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Feb 14, 2019
1 parent 969f5da commit 8c81dc9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
5 changes: 3 additions & 2 deletions examples/bigdata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@cell "WorldClim visualization" [visualization, dataset, bigdata] begin
# fixes for GDAL messing with LD library path and therefore using wrong curl
# for downloads
using FileIO, GeometryTypes, Colors, GDAL
using FileIO, GeometryTypes, Colors, GDAL, BinaryProvider
env = ENV["LD_LIBRARY_PATH"]
#=
This example requires the GDAL package, from https://github.com/JuliaGeo/GDAL.jl
Expand All @@ -16,7 +16,7 @@


# set up 7zip
exe7z = "7z"
exe7z = BinaryProvider.gen_unpack_cmd("bla.zip", "dest").a[1]

unzip(in, out) = run(`$exe7z x -y $in -o$out`)

Expand Down Expand Up @@ -48,6 +48,7 @@
download("http://biogeo.ucdavis.edu/data/worldclim/v2.0/tif/base/wc2.0_10m_$name.zip", "$name.zip")
end
if !isdir(name)
#BinaryProvider.unpack("$name.zip", name) doesn't work -.-
unzip("$name.zip", name)
end
ENV["LD_LIBRARY_PATH"] = env
Expand Down
6 changes: 3 additions & 3 deletions examples/documentation.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@block AnthonyWang [documentation] begin
@cell "pong" [animated, scatter, updating] begin
@cell "pong" [animated, scatter, updating, record] begin
# init speed and velocity vector
xyvec = rand(Point2f0, (2)) .* 5 .+ 1
velvec = rand(Point2f0, (2)) .* 10
Expand Down Expand Up @@ -33,7 +33,7 @@
end
end

@cell "pulsing marker" [animated, scatter, markersize, updating] begin
@cell "pulsing marker" [animated, scatter, markersize, updating, record] begin
N = 100
scene = scatter([0], [0], marker = '', markersize = 0.5, color = :red, raw = true)
s = scene[end] # last plot in scene
Expand All @@ -42,7 +42,7 @@
end
end

@cell "Travelling wave" [animated, lines, updating, interaction] begin
@cell "Travelling wave" [animated, lines, updating, interaction, record] begin
scene = Scene()
mytime = Node(0.0)
f(v, t) = sin(v + t)
Expand Down
2 changes: 1 addition & 1 deletion examples/examples2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@cell "scatter colormap" [scatter, colormap] begin
scatter(rand(10), rand(10), color = rand(10))
end
@cell "Lots of Heatmaps" [heatmap, performance, vbox] begin
@cell "Lots of Heatmaps" [heatmap, performance, vbox, record] begin
# example by @ssfrr
function makeheatmaps(bufs)
heatmaps = map(bufs) do buf
Expand Down
3 changes: 1 addition & 2 deletions examples/examples3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,8 @@
z = (-x .* exp.(-x .^ 2 .- (y') .^ 2)) .* 4
scene = surface(x, y, z)
xm, ym, zm = minimum(scene.limits[])
scene = surface!(scene, x, y, z .+ 0.05)
contour!(scene, x, y, z, levels = 15, linewidth = 2, transformation = (:xy, zm))
wireframe!(scene, x, y, z)
wireframe!(scene, x, y, z, overdraw = true, transparency = true, color = (:black, 0.1))
scene
end

Expand Down
2 changes: 1 addition & 1 deletion src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Creates a Gallery in `html_out` from already recorded examples in `folder`.
function gallery_from_recordings(
folder::String,
html_out::String = abspath(joinpath(pathof(MakieGallery), "..", "..", "index.html"));
tags = [string.(AbstractPlotting.atomic_function_symbols)..., "interaction"]
tags = [string.(AbstractPlotting.atomic_function_symbols)..., "interaction", "record"]
)
items = map(MakieGallery.database) do example
base_path = joinpath(folder, string(example.unique_name))
Expand Down

0 comments on commit 8c81dc9

Please sign in to comment.