Skip to content

Commit

Permalink
noscroll
Browse files Browse the repository at this point in the history
  • Loading branch information
rdboyes committed May 23, 2024
1 parent f4137ac commit e64346c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,15 @@ Random.seed!(123)
n = 200
df = DataFrame(x = randn(n) / 2, y = randn(n))

top = ggplot(df) + geom_histogram(aes(x = :x), color = (:orangered, 0.5), strokewidth = 0.5) +
top = ggplot(df) +
geom_histogram(aes(x = :x), color = (:orangered, 0.5), strokewidth = 0.5) +
lims(x = c(-4, 4)) +
theme(xticklabelsvisible = false, xgridvisible = false) +
beautiful_makie_theme

right = ggplot(df) +
geom_histogram(aes(:y), color = (:dodgerblue, 0.5), direction = :x, strokewidth = 0.5) +
geom_histogram(aes(:y), color = (:dodgerblue, 0.5),
direction = :x, strokewidth = 0.5) +
lims(y = c(-3, 3)) +
theme(yticklabelsvisible = false, ygridvisible = false) +
beautiful_makie_theme
Expand All @@ -195,8 +197,8 @@ middle = ggplot(df) + geom_point(aes(:x, :y), size = 10) +
blank = ggplot() +
theme(xticklabelsvisible = false, xgridvisible = false, yticklabelsvisible = false,
ygridvisible = false, xtickcolor = :transparent, ytickcolor = :transparent,
bottomspinevisible = false, topspinevisible = false, rightspinevisible = false, leftspinevisible = false) +
beautiful_makie_theme
bottomspinevisible = false, topspinevisible = false, rightspinevisible = false,
leftspinevisible = false) + beautiful_makie_theme

top + blank + middle + right +
plot_layout(ncol = 2, nrow = 2, widths = c(3, 1), heights = c(1, 2))
Expand Down

0 comments on commit e64346c

Please sign in to comment.