在单个线性图中绘制多个字典/数据帧

时间:2018-04-01 18:24:39

标签: python pandas matplotlib

我正在收集多个词典中某些来源的数据,如下所示

d1={'01-01-2018':15,'02-01-2018':15,'03-01-2018':15}
d1={'01-01-2018':20,'02-01-2018':25,'03-01-2018':56}
d1={'01-01-2018':10,'02-01-2018':14,'03-01-2018':45}
d1={'01-01-2018':18,'02-01-2018':15,'03-01-2018':15}

每个字典都有Date和Values.Now我想将它们转换为数据帧,然后在单个线性图中绘制(d1,d2,d3,d4有4行,x axis - Date,{{1} } - 值)

如果多个词典不便于在单个图表中绘图,我可以在其他合适的数据结构中收集(列表)

1 个答案:

答案 0 :(得分:2)

<div id="panorama" style="position: absolute;left:0; top: 0;height: 100%; width: 100%; z-index: -1;opacity: 1"></div>
<div id="layerBeforePanorama" style="position: absolute;left:0; top: 0;height: 100%; width: 100%; z-index: 0;opacity: 1"></div>

<script>
var panoOptions = {
    position: latlng,
    pov: {
        heading: 0,
        pitch: 0
    }
  };
var pano = new google.maps.StreetViewPanorama(document.getElementById('panorama'), panoOptions);
</script>

enter image description here