Comments (2)
- I dont think it is possible to specify the headsize right now. It is calculated in
enclosing_geometry
radius, idx = findmax(x-> norm(x .- middle), positions)
- the head center is the mean of your plot. so if you want to keep them aligned, maybe add a
pos1 = pos1 .- mean(pos1)
pos2 = pos2 .- mean(pos2)
inbetween, or adjust to a common center if you want.
from topoplots.jl.
Thank you for the help,
using the formulas you provided we wrote this method to help us move and scale the head
function eegHeadMatrix(positions, center, radius)
oldCenter = mean(positions)
oldRadius, _ = findmax(x-> norm(x .- oldCenter), positions)
radF = radius/oldRadius
return Makie.Mat4f(radF, 0, 0, 0,
0, radF, 0, 0,
0, 0, 1, 0,
center[1]-oldCenter[1]*radF, center[2]-oldCenter[2]*radF, 0, 1)
end
We then use this matrix as model parameter for drawing the head
from topoplots.jl.
Related Issues (17)
- TagBot trigger issue HOT 10
- README stable docs badge goes to 404 HOT 1
- Strange interpolation at boundary HOT 19
- Deactivate Interpolator HOT 3
- Call scipy directly via PythonCall HOT 4
- EEG TopoPlot colorrange issue with data type HOT 1
- I can not update Makie because of Topoplot
- Unused line / define defaults?
- [MakieCon2023] New (faster) Interpolators HOT 11
- Convert from x/y/z to eeg_topoplot positions
- Plotting broken for subset of chanels (and no labels) HOT 10
- eeg_topoplot: labels need to be specified twice
- Data description is missing HOT 1
- multiple layout arrangements HOT 2
- Arbitrary topoplot types HOT 2
- label_text=true doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from topoplots.jl.