Insert a label in waterfall plot

조회 수: 10 (최근 30일)
Karthik Brs
Karthik Brs 2015년 11월 10일
댓글: Karthik Brs 2015년 11월 10일
Hello everyone! I would like to if anyone knows how to label a waterfall plot. I have a waterfall plot as shown in the figure. The lines represents the 'Engine orders'. I wish to have a text aside each line, such that it each line mentions the engine orders like a label. This is my code, just in case!
figure(50);
wf = waterfall([a1 a1 a1 a1]',[F1 F2 F3 F4]',[t1 t2 t3 t4]');
view([0 90]); %Sets the default viewport to X-Y plane
xlabel('RPM','FontSize',12,'Fontweight','bold');
ylabel('Frequency','FontSize',12,'Fontweight','bold');
title('Campbell diagram','FontSize',16,'Fontweight','bold');
cb = colorbar('eastoutside');
set(get(cb,'title'),'string','Schalleistung in dB');
set(wf,'Linewidth',4);
Thank you in advance!

답변 (1개)

Joachim Schlosser
Joachim Schlosser 2015년 11월 10일
편집: Joachim Schlosser 2015년 11월 10일
You are looking for annotations . If you want to add annotations graphically, use the plot tools .
  댓글 수: 1
Karthik Brs
Karthik Brs 2015년 11월 10일
Actually I want to make the code robust, therefore I want to include it in the code, so that it works with any data. I just the plot to be easily readable. The code should work for any data with any time order! Any suggestions?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by