set_mpl_style

Import packages

[1]:
import porespy as ps
import matplotlib.pyplot as plt

Create image:

[2]:
im = ps.generators.blobs([100, 100])
fig, ax = plt.subplots(figsize=[7, 7]);
plt.imshow(im);
../../../_images/examples_visualization_howtos_set_mpl_style_4_0.png

Set plot style:

[3]:
ps.visualization.set_mpl_style()
fig, ax = plt.subplots(figsize=[7, 7]);
plt.imshow(im);
../../../_images/examples_visualization_howtos_set_mpl_style_6_0.png