Back to the main page.
Bug 1760 - the horizontal axis in ft_multiplotER is at a weird location
Status | CLOSED FIXED |
Reported | 2012-10-01 22:50:00 +0200 |
Modified | 2014-01-29 13:41:59 +0100 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P3 normal |
Assigned to: | Roemer van der Meij |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2012-10-01 22:50:51 +0200
Created attachment 334 screenshot, note the horizontal axes
Robert Oostenveld - 2012-10-01 22:54:48 +0200
I have added a test script and data to reproduce the problem. manzana> svn commit test_bug1760.m* Adding test_bug1760.m Adding (bin) test_bug1760.mat Transmitting file data .. Committed revision 6625.
Jörn M. Horschig - 2012-10-02 10:02:47 +0200
at first glance I thought you meant the vertical axis label on the lower right - also a bit strange
Robert Oostenveld - 2012-10-02 10:48:23 +0200
probably they are related. The ticks along the vertical axis might be off, casing its labels and the 0-crossing with the h-axis to display incorrectly.
Roemer van der Meij - 2013-06-05 18:16:38 +0200
Looking at the data, the strangely floating x-axis is actually at the right location. The y-range for most of the channels is like -30 -> -23. The x-axis should be placed at y = 0, and that is quite above the actual lines plotted inside the box. Of course, both axis should be touching 0,0. I've changed ft_plot_vector to always extend the axis lines so they touch 0,0. This doesn't look pretty of course (attachment 1), even more so with cfg.box = 'yes'. I would say it is intended behaviour though.
Roemer van der Meij - 2013-06-05 18:17:29 +0200
Created attachment 485 attachment 1 without box
Roemer van der Meij - 2013-06-05 18:17:56 +0200
Created attachment 486 attachment 2 with box
Roemer van der Meij - 2013-06-05 18:27:30 +0200
setting to fixed