我使用的是函数e.x:ml.dis.top.plot()。我想旋转这些数字并删除标题。我该怎么做呢?
plt.title('')似乎适用于标题,但我不能旋转这些数字。以下是脚本的一部分:
fig = plt.figure(figsize=(75, 75))
plt.subplot(1,1,1,aspect='equal')
mf.dis.top.plot(contour=True, colorbar=True)
plt.title('')
plt.savefig('top_plot.png')发布于 2018-12-07 22:31:40
所以你可以用不同的方法在flopy中制作模型图。您正在使用快速而简单的方法来绘制我们的一个数组。您可能想要使用https://github.com/modflowpy/flopy/blob/develop/examples/Notebooks/flopy3_MapExample.ipynb中描述的ModelMap功能。这将使您完全控制您的图形,包括旋转和偏移,并将允许您自定义标题和任何其他您需要做的事情。代码可能如下所示:
fig = plt.figure(figsize=(75, 75))
ax = plt.subplot(1, 1, 1, aspect='equal')
modelmap = flopy.plot.ModelMap(model=mf, rotation=14)
modelmap.contour_array(mf.dis.top.array)
plt.savefig('top_plot.png')https://stackoverflow.com/questions/53670020
复制相似问题