Legend looks very weird

4 次查看(过去 30 天)
Alex Y
Alex Y2020-1-24
评论: Guillaume ,2020-1-27
I'm having trouble plotting legend.
The items in the legend are overlaid on top of each other, and no matter what I try, they always look that way. Could anyone help me to make it look normal again, and tell me what is wrong with it?
Thank you so much in advance!!!
% now draw
xlabel('Time (min)'); ylabel('Radioactivity (Bq/mL)');
ax = gca; ax.YAxis.Exponent = 0;
print('-dpdf','-bestfit',[ num2str(IDs(id)) num2str(d) '.pdf']);
  4 个评论
Alex Y
Alex Y 2020-1-24
The problem still persists... I also tried specifying OGL implementation.


回答(2 个)

Harsha Priya Daggubati
Can you share the data or atleast dimensions of the data you are trying to plot, since this issue is not reproducible at my end.

Yair Altman
Yair Altman 2020-1-27
Run the following and check if you still see the same problem:
plot(1:3,1:3,'ko-', 1:3,2:4,'ro-', 1:3,3:5,'bo-');
If you see the same problem it could mean that your legend function is corrupted. Run whos('legend','-all') and check if you have an unexpected version of the legend function on your Matlab path.
If you don't see the same problem, it might be a problem with your data in some strange way. In any case it will help narrow down the possibilities.
  2 个评论
Guillaume 2020-1-27
From the various questions we've seen over the years, it seems that EEGlab has a nasty habit of replacing essential matlab functions with their own, which ends up breaking matlab in all sort of interesting ways.





Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by