You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have experienced that Makie does not throw any error or gives poor error messages in case of invalid keyword arguments.
I have given a small example using heatmap below. CairoMakie just ignores there invalid keyword arguments and GLMakie returns an obscure error message that does not contain the keyword argument.
This can easily lead new (and experienced) Makie users to spend a long time debugging simple mistakes in keyword arguments.
Environment info
This is tested in a fresh environment with
GLMakie version = "0.8.11"
CairoMakie version = "0.10.11"
Example
using GLMakie #or CairoMakie
x =1:4
y =1:5
data_values = [ x_i * y_i for y_i in y, x_i in x]
# Example of invalid argumentheatmap( x, y, data_values, random_invalid_argument =(-20,20))
# using Plots.jl keyword (common beginner mistake) heatmap( x, y, data_values; clims =(-20,20))
#The correct color range correctheatmap( x, y, data_values, colorrange =(-20,20))
Description
I have experienced that Makie does not throw any error or gives poor error messages in case of invalid keyword arguments.
I have given a small example using heatmap below. CairoMakie just ignores there invalid keyword arguments and GLMakie returns an obscure error message that does not contain the keyword argument.
This can easily lead new (and experienced) Makie users to spend a long time debugging simple mistakes in keyword arguments.
Environment info
This is tested in a fresh environment with
GLMakie version = "0.8.11"
CairoMakie version = "0.10.11"
Example
GKMakie error message
The text was updated successfully, but these errors were encountered: