Show Statistics in a Special Figure
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
How to implement/produce a figure like this? I need the code.
Thanks in advance!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1060165/image.png)
댓글 수: 5
the cyclist
2022년 7월 9일
I would not necessarily expect a response within a couple hours here, especially on weekends. We are not paid consultants, after all.
Also, I suggest you read this tutorial about how to ask a question well, increasing your chance of getting a satisfactory answer.
John D'Errico
2022년 7월 9일
If you need a piece of code to start, then start writing. We are not a service where we write code on demand. I gave you pretty clear directions, telling you exactly what tools to use.
채택된 답변
Image Analyst
2022년 7월 10일
Once you invest 2 hours here:
you'll EASILY be able to write very simple code such as these few lines:
t = 2018 : 2025;
data = [23.14, 26.66, 30.73, 35.82, 42.62, 51.11, 62.12, 75.44];
bar(t, data);
hold on;
plot(t, data, 'b.-', 'LineWidth', 2, 'MarkerSize', 20)
grid on
xlabel('Year', 'FontSize', 16);
title('Global IoT Devices', 'FontSize', 16);
댓글 수: 3
Walter Roberson
2022년 7월 10일
t = 2018 : 2025;
data = [23.14, 26.66, 30.73, 35.82, 42.62, 51.11, 62.12, 75.44];
bar(t, data);
hold on;
plot(t, data, 'b.-', 'LineWidth', 2, 'MarkerSize', 20)
grid on
xlabel('Year', 'FontSize', 16);
title('Global IoT Devices', 'FontSize', 16);
text(t, data+10, string(data))
추가 답변 (1개)
the cyclist
2022년 7월 9일
One approach would be find a plot (or plots) in the MATLAB Plot Gallery that look similar to what you want, download that code, and modify the code to get what you want.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!