필터 지우기
필터 지우기

Plotting various data on worldmap

조회 수: 2 (최근 30일)
Hitesh Bugata
Hitesh Bugata 2020년 6월 16일
댓글: KSSV 2020년 6월 17일
I have precipitation, temperature values on a particular day for USA, Canada, India, China. I want to plot them on world map with country name in the background and different symbols/ colours for precipitation, temperature and a small table on the side to say what colour indicates what property. A sample image is attached. Thanks in advance.

채택된 답변

KSSV
KSSV 2020년 6월 16일
  1. Select the background world image with good quality.
  2. Read the image using imread, show it using image and fix the limits using axis. Read about imread, image, axis.
  3. USe hold on and plot your required data with different markers. Read about plot for this.
  4. You can show up your country names using text. Read about text.
  5. You can show the explanation using legend. Read about legend.
  댓글 수: 2
Hitesh Bugata
Hitesh Bugata 2020년 6월 17일
You are a genius. I faced a difficulty in assigning limits to the axis. When I tried to give axis([-180 180 -90 90]). I tried with 7 images and all of them couldn't adjust to the limitations of the axis I gave. So I went with 'axis auto' and plotted data accordingly. Is there a way to enlarge the image after creating all the data and adding legend? That's because few data points are close to each other and their headings are overlapping when looked at a broad scale. When I zoom in on the image after the code runs, they are visible and clear. How to overcome this problem?
KSSV
KSSV 2020년 6월 17일
You can fix the dimensions of figure. Read about the properties of figure. There are lot of other options, which could help you.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by