Back to the main page.
Bug 2277 - show mask as contours
| Status | CLOSED FIXED |
| Reported | 2013-09-09 11:58:00 +0200 |
| Modified | 2014-03-12 12:20:23 +0100 |
| Product: | FieldTrip |
| Component: | plotting |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Windows |
| Importance: | P3 normal |
| Assigned to: | Jörn M. Horschig |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Jörn M. Horschig - 2013-09-09 11:58:22 +0200
many papers show a significance mask as contours in a TF-plot. Some people might prefer this over saturation or opacity masking, and it should be easily implemented in FieldTrip
Eelke Spaak - 2013-09-09 12:04:02 +0200
I have some (non-FT) code for this.
Jörn M. Horschig - 2013-09-09 12:12:25 +0200
would be great if you attach it ;)
Eelke Spaak - 2013-09-09 12:17:19 +0200
(In reply to comment #1) It took some digging, but I found it: % plot outline [x,y] = meshgrid(xAxis, yAxis); x = interp2(x,4); y = interp2(y,4); contourlines = interp2((p < alphaLevel), 4); contour(x,y,contourlines,1,'EdgeColor',[1 1 1],'LineWidth',2); It basically creates a binary mask, and then rounds the corners by interpolating it. The lines are plotted through contour(), which needs meshgrid-ded inputs.
Jörn M. Horschig - 2013-09-09 12:23:45 +0200
arigato ;)
Jan-Mathijs Schoffelen - 2013-10-10 10:56:55 +0200
Assigned to a named person, to push forward the resolution of this bug. Otherwise it just adds to the 'stuwmeer' of unassigned bugs, that nobody feels responsible for. @Eelke and @Jorn, please sort out who is going to push this forward, for now assigned to Jorn
Jörn M. Horschig - 2013-10-16 10:14:06 +0200
fine, I'll do it
Jörn M. Horschig - 2013-10-16 10:59:37 +0200
are round corners desired in a TFR plot or should they be rectangular?