我有一个带有六边形几何图形和标签的地质雷达数据,我很难弄清楚如何:
数据片段如下所示:
geometry pred_labels color
0 POLYGON ((63.06967 29.61571, 63.07798 29.60487... 1 0.000000
1 POLYGON ((63.18163 29.99343, 63.18998 29.98255... 3 0.666667
2 POLYGON ((62.99624 29.69126, 63.00458 29.68042... 1 0.000000
3 POLYGON ((63.32191 29.58779, 63.33018 29.57693... 1 0.000000
4 POLYGON ((63.64046 29.59359, 63.64869 29.58271... 1 0.000000
10509 rows × 3 columns当我策划:
df_january.plot(cmap='Purples', legend=True);

我得到了一些看起来正确的东西,但是如果我将列指定为pred_labels或颜色,我将得到非常不稳定和混乱的情节。例如:
df_january.plot(column='pred_labels', cmap='Purples', legend=True);

放大:

发布于 2020-12-18 23:12:12
在J.Warren之后,将几何图形列放置在df的末尾改进了绘图。
https://stackoverflow.com/questions/65364730
复制相似问题