将不同位置的数据绘制为轮廓图

时间:2018-10-29 05:25:49

标签: matplotlib matlab-figure heatmap contour

我有许多位置的数据,我想将这些数据绘制在不同的位置,如轮廓图或任何其他样式。这是我拥有的数据的示例:

    Date    Lat Lon Concentration
    1950    2   2   5

    Date    Lat Lon Concentration
    1950    2   2.25    7

    Date    Lat Lon Concentration
    1950    2   2.5 8
    .           
    .           
    .           

我想绘制一个热图或等高线图,以显示每个位置的浓度。

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

您可以从MATLAB文件交换here中使用const handleFileUpload = event => { const file = event.target.files[0] // file is a Blob I want to serialize const reader = new FileReader() reader.readAsBinaryString(file) reader.onload = () => { const binaryString = reader.result // binary string is my serialized Blob const deserializedBlob = createBlobFromBinaryString(binaryString) // how do I deserialize the binary string ? } } 函数。这将创建一个带有世界地图的图,其背景放大到plot_google_mapsLat坐标的范围。在那里,您可以使用色条来绘制散点图。

Lon

这给出了类似的东西

enter image description here