Skip to content
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

EEG TopoPlot colorrange issue with data type #23

Closed
geigermartin opened this issue Nov 22, 2022 · 2 comments
Closed

EEG TopoPlot colorrange issue with data type #23

geigermartin opened this issue Nov 22, 2022 · 2 comments

Comments

@geigermartin
Copy link

Hi, I noticed a small problem when setting the 'colorrange' attribute for the eeg_topoplot() function. The colors inside the circles that indicate channel locations are unaffected by the new colorrange if the data is passed as Vector{Any} instead of Vector{Float32}.

colorrange

@palday
Copy link
Collaborator

palday commented Jul 18, 2023

Can you post an MWE? You can use TopoPlots.example_data() for example data.

@behinger
Copy link
Collaborator

seems to resolved itselve - I tried this:

let
    data, positions = TopoPlots.example_data()
    d = Array{Any}(undef,10)
    d[1:10] .= 1:10
    f, ax, pl = topoplot(d,positions[1:10];colorrange=[-1,5],label_scatter=true,markersize=10)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants