This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| measures = ["Endurance", "Coordination", "Speed", "Power Low", "Power Up"] | |
| groups = ["boys", "girls"] | |
| x = LinRange(-8, 9, 15) | |
| f = Figure(resolution = (1000, 500)) | |
| axs = [Axis(f[1, i]) for i in 1:length(measures)] | |
| for (i, m) in enumerate(measures) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Legendre, GLMakie | |
| using GeometryBasics, LinearAlgebra, StatsBase | |
| using AbstractPlotting | |
| using AbstractPlotting: get_dim, surface_normals | |
| function Y(θ, ϕ, l, m) | |
| if m < 0 | |
| return (-1)^m * √2 * Nlm(l, abs(m)) * Plm(l, abs(m), cos(θ)) * sin(abs(m)*ϕ) | |
| elseif m == 0 | |
| return sqrt((2*l+1)/4π)*Plm(l, m, cos(θ)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using GLMakie | |
| f = Figure(resolution = (1000, 1000)) | |
| ax = Axis(f[1, 1], aspect = 1, limits = (-1, 1, -1, 1)) | |
| points = Node(Point2f0[]) | |
| colors = Node(Bool[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this looks kind of close | |
| set_theme!( | |
| font = "Arial", | |
| fontsize = 12, | |
| Axis = ( | |
| backgroundcolor = :gray92, | |
| xgridcolor = :white, | |
| ygridcolor = :white, | |
| xminorgridcolor = (:white, 0.5), | |
| xminorgridvisible = true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @recipe(Histstep, values) do scene | |
| Attributes( | |
| bins = 15, # Int or iterable of edges | |
| normalization = :none | |
| ) | |
| end | |
| function AbstractPlotting.plot!(plot::Histstep) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using GLMakie | |
| set_window_config!(float = true) | |
| # | |
| scene, layout = layoutscene(resolution = (1000, 1000)) | |
| offscreen_gl = GridLayout(bbox = BBox(-500, -400, -500, -400)) | |
| axs = layout[] = [LAxis(scene, title = string(i)) for i in CartesianIndices((2, 2))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using AbstractPlotting | |
| using AbstractPlotting.MakieLayout | |
| using GLMakie | |
| set_window_config!(float = true) | |
| ## | |
| scene, layout = layoutscene(resolution = (1000, 800)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scene, layout = layoutscene(resolution = (600, 600)) | |
| ax = layout[1, 1] = LAxis(scene) | |
| lineobjects = [lines!(ax, 1:10, randn(10), color = rand(RGBf0)) for _ in 1:5] | |
| invisible_element = LineElement(color = :transparent, linewidth = 0, linestyle = nothing) | |
| reorder(elems) = collect(vec(permutedims(reshape(elems, :, 2)))) | |
| layout[1, 2] = LLegend(scene, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using AbstractPlotting, AbstractPlotting.MakieLayout, GLMakie | |
| set_window_config!(float = true) | |
| let | |
| scene, layout = layoutscene(resolution = (800, 800)) | |
| ax = layout[1, 1] = LAxis(scene) | |
| data = Node(zeros(Bool, 30, 30)) | |
| data[][1, 1] = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct IntegerTicks end | |
| MakieLayout.get_tickvalues(::IntegerTicks, vmin, vmax) = ceil(Int, vmin):floor(Int, vmax) | |
| scene, layout = layoutscene(resolution = (400, 400)) | |
| ax = layout[1, 1] = LAxis(scene) | |
| xlims!(ax, 0, 10) | |
| ax.xticks = IntegerTicks() | |
| scene |