Skip to content

Still about plot_pathline in plot_crosssection #1108

@wsc1008-cugb

Description

@wsc1008-cugb

I want to use the "plot_pathline" to plot the CrossSection result, which from 0 layer to bottom.
I have used the latest version of flopy, and try an example which is similar with the flopy3_modpath6_example.ipynb, there is such error:

`fig = plt.figure(figsize=(80, 25))

ax = fig.add_subplot(1, 1, 1, aspect='equal')

mx = flopy.plot.PlotCrossSection(ax=ax, model=swt, line={'row': 0})

ibound = mx.plot_ibound()

grid = mx.plot_grid(color='0.3', alpha=0.1)

quadmesh = mx.plot_bc('WEL', kper=4)

contour_set = mx.contour_array(hds, levels=np.arange(np.min(hds),np.max(hds),0.5), colors='b')

plt.clabel(contour_set, inline=True, fontsize=35)

mx.plot_endpoint(well_epd, direction='starting', colorbar=True)

#for now, each particle must be plotted individually
#(plot_pathline() will plot a single line for recarray with multiple particles)
#for pid in np.unique(well_pathlines.particleid):
#modelmap.plot_pathline(pthobj.get_data(pid), layer='all', colors='red');

mx.plot_pathline(well_pathlines, method='cell', colors='red')`

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions