-
-
Notifications
You must be signed in to change notification settings - Fork 362
Open
Labels
Axisrelated to `Axis()` objectsrelated to `Axis()` objectsAxis3related to Axis3related to Axis3MakieBackend independent issues (Makie core)Backend independent issues (Makie core)User Interfacefunctionality users interface withfunctionality users interface withenhancementFeature requests and enhancementsFeature requests and enhancementsold vs new
Description
When using xlabel! or ylabel! to set axis labels according to the docstring, Makie throws a method error.
using CairoMakie
lines(0:0.1:2π, sin)
xlabel!("My X Label")MethodError: no method matching xlabel!(::String)
Closest candidates are:
xlabel!(::Any, !Matched::AbstractString)In the source, xlabel! requires a scene positional argument. This conflicts with the docstring which specifies it as optional.
From the documentation, it seems like scenes where phased out in favor of Figures. Also this discourse post further describes the same issue.
If this is a valid issue, I don't mind creating a draft pull request simply implementing a method for xlabel!(xlabel::AbstractString).
Metadata
Metadata
Assignees
Labels
Axisrelated to `Axis()` objectsrelated to `Axis()` objectsAxis3related to Axis3related to Axis3MakieBackend independent issues (Makie core)Backend independent issues (Makie core)User Interfacefunctionality users interface withfunctionality users interface withenhancementFeature requests and enhancementsFeature requests and enhancementsold vs new