Skip to content

Commit

Permalink
Merge branch 'fix-heatpipe' into 'master'
Browse files Browse the repository at this point in the history
[nb] Fixes heatpipe

See merge request ogs/ogs!5178
  • Loading branch information
bilke committed Dec 16, 2024
2 parents b98fc54 + 9af8258 commit 5af6fb1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Tests/Data/Parabolic/ThermalTwoPhaseFlowPP/HeatPipe/heatpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import pandas as pd
import vtuIO
from IPython.display import Image, display
from mpl_toolkits.axes_grid1.inset_locator import InsetPosition, mark_inset
from mpl_toolkits.axes_grid1.inset_locator import inset_axes, mark_inset

# %%
display(Image(filename="./model_domain.jpg", width=1000))
Expand Down Expand Up @@ -197,14 +197,15 @@
ax[0].legend()
fig.tight_layout()

ax2 = plt.axes([0, 0, 0, 0])
ip = InsetPosition(ax[0], [0.45, 0.4, 0.5, 0.4])
ax2.set_axes_locator(ip)
patch, pp1, pp2 = mark_inset(ax[0], ax2, loc1=3, loc2=4, fc="none", ec="0.5")
# pp1.loc1 = 3
pp1.loc2 = 2
# pp2.loc1 = 4
pp2.loc2 = 1
ax2 = inset_axes(
ax[0],
width="100%",
height="100%",
loc="center",
bbox_to_anchor=[0.45, 0.4, 0.5, 0.4],
bbox_transform=ax[0].transAxes,
)

ax2.plot(
x,
resp[0],
Expand All @@ -220,6 +221,9 @@
ax2.set_ylim(0, 0.1)
ax2.set_yticks(np.arange(0, 0.15, 0.05))

patch, pp1, pp2 = mark_inset(ax[0], ax2, loc1=3, loc2=4, fc="none", ec="0.5")
pp1.loc2 = 2
pp2.loc2 = 1

# %%
fig, ax = plt.subplots(ncols=3, figsize=(18, 6))
Expand Down

0 comments on commit 5af6fb1

Please sign in to comment.