You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing an issue when a legend is created with markers. Whenever a line includes a marker, the text in the legend corresponding to that line turns gray. I am using R2018a. The problem can be reproduced with:
% generate the signal
f = 50; % frequency
Vm = 10; % peak
phi = 45; % phase
t = [0:0.0001:3/f];
th = 2*pi*f*t;
v1 = Vm*sin(th);
v2 = Vm*sin(th - phi);
v3 = Vm*sin(th - phi*2);
% plot them
plt = Plot(t*1E3, v1, t*1E3, v2, t*1E3, v3);
plt.LineStyle = {'-', '-', '-'}; % three line styles
plt.Markers = {'o', '', 's'};
plt.LegendBox = 'on';
plt.Legend = {'\theta = 0^o', '\theta = 45^o', '\theta = 90^o'}; % legends
The text was updated successfully, but these errors were encountered:
Having the same issue with the legend but with different problems in the markers. I'm using R2018b and the library is skipping some markers. The markers problem happens with and without legend. I've tried to mess with the MarkerSpacing but without success. The Plot properties and export can be seen bellow.
I am seeing an issue when a legend is created with markers. Whenever a line includes a marker, the text in the legend corresponding to that line turns gray. I am using R2018a. The problem can be reproduced with:
The text was updated successfully, but these errors were encountered: