简体   繁体   English

如何在python或matlab中使用lat long在3D地图中绘制2D条形图?

[英]How to plot 2D bar graph in 3D maps using lat long in python or matlab?

I need to plot like the same figure How to do that?.我需要像同一个图一样绘制如何做到这一点?。

I am trying matlab and python, but i can't plot the data... Please help!!我正在尝试 matlab 和 python,但我无法绘制数据...请帮忙!!

Distribution of frequency in the map via lat long经纬度在地图中的频率分布

I am trying to plot this figure using this code.我正在尝试使用此代码绘制此图。 But I can't plot accurately through the lat long?但我不能准确地绘制经纬度?

Z = imread('IMG_20210712_145418.jpg');
[X, map] = rgb2ind(Z, 256);
y = 34:36;
x = 134:136;
[xx, yy] = meshgrid(x, y);
zz = zeros(size(xx));
colormap(map)


surf(xx,yy,zz,X,'FaceColor','texturemap','EdgeColor','none','CDataMapping','direct');
k = xlsread('Res_plot.xlsx');
a = k(:, 1);
b = k(:, 2);
c = k(:, 3);
hold on
scatterbar3(b, a, c, 0.02)

enter image description here在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM