0

我正在使用函数,例如: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')
4

1 回答 1

0

So there are different ways that you can make model plots in flopy. You are using the quick and easy way to plot one of our arrays. What you probably want to do is use the ModelMap capability, which is described in https://github.com/modflowpy/flopy/blob/develop/examples/Notebooks/flopy3_MapExample.ipynb. This will give you full control over your figure, including rotation and offset and will allow you to customize the title and anything else you'll need to do. The code might look something like the following:

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')
于 2018-12-07T14:31:40.397 回答