Info
此问题已关闭。 请重新打开它进行编辑或回答。
Assign dotted lineto individual sets of data on a line graph
2 次查看(过去 30 天)
显示 更早的评论
Hi Folks,
The following code plots some lines with different colours automatically.
Essentially 'T_Bulk_Calc' and 'T_Oil' contains 5 data sets each to be plotted (10 in total).
I want each to have individual line type, ie dashed, dotted etc.
figure
plot(t,T_Bulk_calc,t,T_Oil)
xlabel( 'Time [sec]'), ylabel( 'Temperature [Celsius]' )
legend( 'T Bulk calc Base Oil','T Oil C2(meas)','Location', 'E' )
Can someone recommend some syntax? Thanks
0 个评论
回答(1 个)
dpb
2014-7-23
See the last example under
doc plot
for demo of modifying the default line style for automagic cycling. Otherwise, use 'linestyle' property and cycle thru the line handles after using plot
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!