Borrar filtros
Borrar filtros

Plotting various data on worldmap

2 visualizaciones (últimos 30 días)
Hitesh Bugata
Hitesh Bugata el 16 de Jun. de 2020
Comentada: KSSV el 17 de Jun. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by