Skip to content

Commit

Permalink
update demofigure size
Browse files Browse the repository at this point in the history
  • Loading branch information
kimauth committed Sep 20, 2024
1 parent ee33a84 commit 25c659d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ The `publication_theme()` can be updated like any other Makie theme. For example
using MakiePublicationTheme
using CairoMakie, Random # needed for demofigure

update_theme!(publication_theme();
palette = (color = Makie.to_colormap(:batlowKS),),
)
set_theme!(publication_theme())
update_theme!(palette = (color = Makie.to_colormap(:batlowKS),))

f = demofigure()
```
Expand Down
Binary file modified assets/makie_demofigure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/makie_demofigure2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions test/makie_demofigure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ using Random

function demofigure()
Random.seed!(2)

f = Figure()

size = (600, 450) # use Makie default figure size instead of theme figure size
f = Figure(; size)
ax = Axis(f[1, 1],
title = "measurements",
xlabel = "time (s)",
Expand Down

0 comments on commit 25c659d

Please sign in to comment.