Skip to content

Instantly share code, notes, and snippets.

@j-fu
Created January 12, 2021 16:20
Show Gist options
  • Save j-fu/6213665e0c0043e8e97bb2e3b4292e5a to your computer and use it in GitHub Desktop.
Save j-fu/6213665e0c0043e8e97bb2e3b4292e5a to your computer and use it in GitHub Desktop.
new WGLMakie test
### A Pluto.jl notebook ###
# v0.12.18
using Markdown
using InteractiveUtils
# ╔═╡ 09d65712-4bba-11eb-3f63-cfeb0925bb64
begin
using Pkg
Pkg.activate(mktempdir())
Pkg.add(["AbstractPlotting","WGLMakie"])
using PlutoUI
using AbstractPlotting, WGLMakie
end
# ╔═╡ 82d50a2c-54ee-11eb-0938-5f2c42f4eaae
with_terminal() do
Pkg.status()
end
# ╔═╡ c5e40358-54ef-11eb-1f02-c50a19d4728f
s=WGLMakie.scatter(rand(10,2))
# ╔═╡ 1ca61e72-54f0-11eb-3d3f-214886e1e4c8
typeof(s)
# ╔═╡ c66d5b98-54f0-11eb-132d-0f799d24ef83
begin
parent,layout=layoutscene()
ax1=layout[1,1]=Axis(parent)
scatter!(ax1,rand(20,2))
ax2=layout[1,2]=Axis(parent)
scatter!(ax2,rand(20,2))
parent
end
# ╔═╡ 2a2c1990-54f0-11eb-2b57-c142b0c59049
typeof(parent)
# ╔═╡ Cell order:
# ╠═09d65712-4bba-11eb-3f63-cfeb0925bb64
# ╠═82d50a2c-54ee-11eb-0938-5f2c42f4eaae
# ╠═c5e40358-54ef-11eb-1f02-c50a19d4728f
# ╠═1ca61e72-54f0-11eb-3d3f-214886e1e4c8
# ╠═c66d5b98-54f0-11eb-132d-0f799d24ef83
# ╠═2a2c1990-54f0-11eb-2b57-c142b0c59049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment