How to plot pie chart of different size on map?
10 views (last 30 days)
Show older comments
Hi all,
The code below create a graph representing UK and Irleand (see attached file). I would like to add on this graph pie chart with different sizes at different places. can someone help me, please?
(I previously used m_map to add pie chart on graph using m_piechart however the coast line resolution was to coarse for my study)
Cheers
close all
clear all
clc
% assign the path to your working directory:
cd ('E:\publi\Waiting-room\Matt_paper_hydrogen\figure_Matt\new\gshhg-bin-2.3.7(1)\');
% add path to TelemacTolls functions (i.e. to read in telemac files into MATLAB):
addpath ('C:\Matlab_download\m_map1.4\m_map\');
workingFolder = tempdir;
latlim = [48 63];
lonlim = [-12 3];
S = gshhs('gshhs_h.b', latlim, lonlim);
levels = [S.Level];
L1 = S(levels == 1);
figure
plot ([L1.Lon],[L1.Lat], '-b');
xlim([-11 3]);
ylim([49 61]);
0 Comments
Answers (0)
See Also
Categories
Find more on Pie Charts in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!