Bubble plot logxy
using CairoMakie, Random, Colors
Random.seed!(123)
x = 10 .^ (range(-1, stop=1, length=100))
y = x .^ 2 .+ abs.(2 * randn(length(x)))
cmap = cgrad(:viridis, scale=:log, alpha=0.5)
fig, ax, pltpbj = scatter(x, y; markersize=(x .^ 2/3)[end:-1:1] .+ 6,
color=x, colormap=cmap,
figure=(;
resolution=(600, 400),
fonts=(;regular="CMU Serif")),
axis=(;
xscale=log10,
yscale=log10,
xlabel="x", ylabel="y",
xgridstyle=:dash,
ygridstyle=:dash,
xminorticksvisible=true,
yminorticksvisible=true,
xminorticks=IntervalsBetween(9),
yminorticks=IntervalsBetween(9)))
Colorbar(fig[1, 2], pltpbj)
ylims!(ax, 1e-1, 1e2)
fig
Warning
This example was autogenerated using:
using Pkg
Pkg.status(["CairoMakie", "Colors"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
[13f3f980] CairoMakie v0.10.6
[5ae59095] Colors v0.12.10
This page was generated using Literate.jl.