Axis scaling
Verfasst: Montag 2. September 2019, 18:03
Hello people,
I am working on modeling a groundwater problem with jupyter notebook.
The model is working just fine, but I have a problem with my plot. Since the model domain has a length of 2500m and only a width of 2m the plot appears to be very thin.
Now I want to change the scaling of my x-axis so that I can something in my plot.
But I cant make it work. I tried setting the aspect ratio but it seems to have no effect.
Here is the code for the plot:
ax = plt.subplot(1,1,1)
ax.set_aspect(0.1)
mf, mt, conc, cvt, mvt = T01('T01', -1)
conc = conc[0, :, :, :]
mm = flopy.plot.PlotMapView(model=mf)
mm.plot_grid(color='.5', alpha=0.2)
cs = mm.contour_array(conc, levels=[16.], colors='k')
plt.clabel(cs)
plt.xlabel('DISTANCE ALONG X-AXIS, IN METERS')
plt.ylabel('DISTANCE ALONG Y-AXIS, IN METERS')
plt.title('ULTIMATE')
Does anyone have an idea how to change the scaling of the axis?
Thanks in advance, Anton.
I am working on modeling a groundwater problem with jupyter notebook.
The model is working just fine, but I have a problem with my plot. Since the model domain has a length of 2500m and only a width of 2m the plot appears to be very thin.
Now I want to change the scaling of my x-axis so that I can something in my plot.
But I cant make it work. I tried setting the aspect ratio but it seems to have no effect.
Here is the code for the plot:
ax = plt.subplot(1,1,1)
ax.set_aspect(0.1)
mf, mt, conc, cvt, mvt = T01('T01', -1)
conc = conc[0, :, :, :]
mm = flopy.plot.PlotMapView(model=mf)
mm.plot_grid(color='.5', alpha=0.2)
cs = mm.contour_array(conc, levels=[16.], colors='k')
plt.clabel(cs)
plt.xlabel('DISTANCE ALONG X-AXIS, IN METERS')
plt.ylabel('DISTANCE ALONG Y-AXIS, IN METERS')
plt.title('ULTIMATE')
Does anyone have an idea how to change the scaling of the axis?
Thanks in advance, Anton.