help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plot a map of Europe


From: Francesco Potortì
Subject: Re: Plot a map of Europe
Date: Tue, 10 Nov 2015 17:20:34 +0100

>I have searched the internet, but not found a real "how to" instruction on
>how to plot a map of for example Europe and add a contour on top. I need to
>know the packages to install and where I can find map data in a format
>accepted by OCTAVE. I really needs an idiots guide to plotting maps in
>OCTAVE.

Generally speaking, you can draw a plot on top of any background image.
The general way to do so is something like

    map = imread(mapfile);
    image(map);
    axis('image', 'off', 'nolabel');
    hold on
    plot(x, y);

x and y should use the same measure of unit as the map, that is, pixels.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.621.3058
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it




reply via email to

[Prev in Thread] Current Thread [Next in Thread]