Skip to content

Commit 5f0fd6a

Browse files
authored
Merge pull request #3031 from PMEAL/fixing_plots
- Updating plots to be more powerful #maint - Edited examples for clarity #docs
2 parents cab63d0 + e109568 commit 5f0fd6a

13 files changed

+498
-24585
lines changed

example.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,23 @@
7373

7474
# Plot concentration profile
7575
fig, ax = plt.subplots()
76-
ax.pcolormesh(rxn.x.reshape([25, 25]))
76+
ax = op.visualization.plot_coordinates(
77+
network=pn,
78+
ax=ax,
79+
color_by=rxn2['pore.concentration'],
80+
size_by=pn['pore.diameter'],
81+
s=75,
82+
ec='k',
83+
linewidth=0.5,
84+
)
85+
ax = op.visualization.plot_connections(
86+
network=pn,
87+
ax=ax,
88+
zorder=0,
89+
color_by=pn['throat.diameter'],
90+
linewidth=1.5,
91+
alpha=0.5,
92+
)
93+
ax.axis(False)
94+
fig.colorbar(ax.collections[0], label='pore.concentration')
95+
fig.colorbar(ax.collections[1], label='throat.diameter')

examples/applications/absolute_permeability.ipynb

Lines changed: 20 additions & 70 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)