-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contradiction in plot_topoplot signature #227
Comments
A comment form the off: this behavior mimicks topoplots.jl behavior where positions is a positional argument as well. If we change it here, we could also change it there. There reason it is not one in topo plots.jl, is that the second positional argument is "labels", not sure we support the labels still? |
|
So right now you should be able to do:
Whereas in TopoPlots.jl afaik the interface is crap: and you have to provide dummy labels if you don't have them (which I think should change - but communication there is a difficult to say the least). Now we could say we want to have positions as a positional argument, but I dont yet see the reason why we would want that. |
So there are only two options:
Which is better then? |
I thought about it again: I really think labels as keyword and positions as positional is the best way to go. I will make a PR for TopoPlots.jl |
fixed issues with more general data input #213: - data inputs for `plot_channelimage(::DataFrame)`, `plot_erpgrid(::DataFrame)`, `plot_parallelcoordinates(::Matrix)`, `plot_topoplot(::Vector)` - mistakes in signatures for `plot_butterfly` and `plot_erp`, moving some actions inside code from signatures - updated docstrings - adding sorting methods in arguments for channel image, arguments `sorting_variables` and `sorting_reverse` - more tests for checking length mismatch of arguments in `plot_topoplot`, `plot_erpgrid` and `plot_channelimage` - adding `ch_names::Vector{String}` into arguments for `plot_erpgrid` Other - fixed #227 - fixed #218 - fixed #221 - typos in docs
Why I see this error
if according to signature positions are kwargs
plot_topoplot(data; positions = nothing, labels = nothing, kwargs...)
?Some logical error here
The text was updated successfully, but these errors were encountered: