Back to the main page.

Bug 3436 - Legend bug

Status CLOSED FIXED
Reported 2018-07-05 14:53:00 +0200
Modified 2019-08-10 12:36:44 +0200
Product: FieldTrip
Component: test
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

- 2018-07-05 14:53:12 +0200

Created attachment 866 plot figure with the legend bug Hi, I put the bug report in test component because I had to select something but it's actually a bug induce by the FieldTrip to the basic legend function of Matlab. When I add FieldTrip to my path and execute the following simple code y = sin(0.01:0.01:10); x = sin(0.01:0.01:10).^2; plot(x) hold on; plot(y) legend('toto', 'boum') I got the following result (see attachment). The plot is normal without FieldTrip in my path and I cannot see any legend or plot function in FieldTrip, so I have no idea what's happening. Thanks for your help.


Robert Oostenveld - 2018-07-06 10:58:17 +0200

thanks for reporting. I cannot reproduce it. What makes you think it is due to fieldtrip? Did you follow instructions at http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path I suspect that if you type "which legend" or if you type "path", it will disclose that you set up your path incorrectly.


- 2018-07-06 11:16:34 +0200

Hi, You're right, I didn't see the fieldtrip path instructions. When I add only fieldtrip to my path there is no bug. The legend bug is only happening when I add fieldtrip with all subdirectories (could be due to external stuff ?). Anyway thanks for you're help ! Renaud


Robert Oostenveld - 2018-07-06 11:36:43 +0200

I have tried making this even more clear (i.e. pushing it in the users face upon every FieldTrip function call). Please check out https://github.com/fieldtrip/fieldtrip/pull/738


Robert Oostenveld - 2019-08-10 12:36:44 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.