Skip to content

Commit 6e74a2d

Browse files
committed
Fix variable reference in scalebar function in MakieRecipes.jl
- Updated the reference from `x_label` to `xlabel` to maintain consistency with recent parameter naming changes. This ensures correct functionality in the scalebar implementation.
1 parent 45d9f5a commit 6e74a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhysMakie/MakieRecipes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ function scalebar!(ax;
350350
linewidth = linewidth
351351
)
352352

353-
x_label_text = isnothing(x_label) ? "$(length_x)" : x_label
353+
x_label_text = isnothing(xlabel) ? "$(length_x)" : xlabel
354354
text!(ax, x_label_text,
355355
position = (x_start + length_x/2, y_start - y_start/offset_x_ratio),
356356
align = (:center, :center),

0 commit comments

Comments
 (0)