Skip to content

Commit 490662e

Browse files
committed
Disable deprecated KappaPlot figure from Tampere figure script
1 parent 752cf8c commit 490662e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

msc2-python/tampere/figures.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import numpy as np
55

66
from pttools.logging import setup_logging
7-
from pttools.models import BagModel, ConstCSModel
7+
from pttools.models import ConstCSModel
88
from pttools.analysis.bubble_grid import BubbleGridVWAlpha
9-
from pttools.analysis.plot_entropy_grid import EntropyPlot, KappaPlot, compute
9+
from pttools.analysis.plot_entropy_grid import EntropyPlot, compute
1010

1111
import const
1212

@@ -46,14 +46,15 @@ def main():
4646
# fig.savefig(f"{path}.png")
4747
plt.close(fig)
4848

49-
fig = plt.figure(figsize=figsize)
50-
ax = fig.add_subplot()
51-
KappaPlot(grid, fig, ax)
52-
fig.tight_layout()
53-
path = os.path.join(const.FIG_DIR, f"kappa_{model.name}")
54-
fig.savefig(f"{path}.png", bbox_inches='tight', pad_inches=0)
55-
# fig.savefig(f"{path}.png")
56-
plt.close(fig)
49+
# KappaPlot is no longer available in PTtools
50+
# fig = plt.figure(figsize=figsize)
51+
# ax = fig.add_subplot()
52+
# KappaPlot(grid, fig, ax)
53+
# fig.tight_layout()
54+
# path = os.path.join(const.FIG_DIR, f"kappa_{model.name}")
55+
# fig.savefig(f"{path}.png", bbox_inches='tight', pad_inches=0)
56+
# # fig.savefig(f"{path}.png")
57+
# plt.close(fig)
5758

5859

5960
if __name__ == "__main__":

0 commit comments

Comments
 (0)