Azzera filtri
Azzera filtri

Plotting various data on worldmap

2 visualizzazioni (ultimi 30 giorni)
Hitesh Bugata
Hitesh Bugata il 16 Giu 2020
Commentato: KSSV il 17 Giu 2020
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.

Risposta accettata

KSSV
KSSV il 16 Giu 2020
  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 Commenti
Hitesh Bugata
Hitesh Bugata il 17 Giu 2020
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 il 17 Giu 2020
You can fix the dimensions of figure. Read about the properties of figure. There are lot of other options, which could help you.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by