diff --git a/Bioindustrial-Park b/Bioindustrial-Park index d4461cb9..71005fa3 160000 --- a/Bioindustrial-Park +++ b/Bioindustrial-Park @@ -1 +1 @@ -Subproject commit d4461cb9f0a2286bcdfbe41dc6b63b8f83a5685f +Subproject commit 71005fa3fa7b4c12d09f18485777f2371df22925 diff --git a/How2STEAM b/How2STEAM index 5b53b835..b90d7ac4 160000 --- a/How2STEAM +++ b/How2STEAM @@ -1 +1 @@ -Subproject commit 5b53b8354163be8179dbebd98f43764f3d405c74 +Subproject commit b90d7ac44f125957430541419605bef4b353cf9f diff --git a/biosteam/plots/plots.py b/biosteam/plots/plots.py index b96769ff..93d07ad6 100644 --- a/biosteam/plots/plots.py +++ b/biosteam/plots/plots.py @@ -1177,7 +1177,7 @@ def plot_contour_single_metric( "Z.shape must be (X, Y, M, N), where (X, Y) is the shape of both X and Y" ) fig, axes, ax_colorbar = contour_subplots(nrows, ncols, single_colorbar=True) - if styleaxiskw is None: styleaxiskw = {} + if styleaxiskw is None: styleaxiskw = dict(xtick0=False, ytick0=False) cps = np.zeros([nrows, ncols], dtype=object) linecolor = np.array([*c.neutral_shade.RGBn, 0.1]) other_axes = [] @@ -1207,7 +1207,16 @@ def plot_contour_single_metric( ) for i in clabels: i.set_rotation(0) cps[row, col] = cp - dct = style_axis(ax, xticks, yticks, xticklabels, yticklabels, **styleaxiskw) + + if row == nrows - 1 and not styleaxiskw.get('ytick0', True): + sak = styleaxiskw.copy() + sak['ytick0'] = True + else: + sak = styleaxiskw + if col == 0 and not styleaxiskw.get('xtick0', True): + sak = sak.copy() + sak['xtick0'] = True + dct = style_axis(ax, xticks, yticks, xticklabels, yticklabels, **sak) other_axes.append(dct) cb = metric_bar.colorbar(fig, ax_colorbar, cp, fraction=0.5) plt.sca(ax_colorbar) diff --git a/docs/tutorial/Glacial_acetic_acid_separation.nblink b/docs/tutorial/Glacial_acetic_acid_separation.nblink new file mode 100644 index 00000000..49d73e37 --- /dev/null +++ b/docs/tutorial/Glacial_acetic_acid_separation.nblink @@ -0,0 +1,6 @@ +{ + "path": "../../How2STEAM/case_studies/Glacial_acetic_acid_separation.ipynb", + "extra-media": [ + "../../How2STEAM/images/GAA.png" + ] +} \ No newline at end of file diff --git a/docs/tutorial/index.txt b/docs/tutorial/index.txt index 04938ec4..ae0e8d6e 100644 --- a/docs/tutorial/index.txt +++ b/docs/tutorial/index.txt @@ -66,4 +66,4 @@ User guide :caption: Case studies Aerated_bioreactor_design - + Glacial_acetic_acid_separation