Skip to content

Commit ab7f112

Browse files
committed
add save png
1 parent 7260db0 commit ab7f112

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

causallearn/graph/GraphClass.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,9 @@ def draw_pydot_graph(self):
193193
warnings.filterwarnings("ignore", category=UserWarning)
194194
pyd = GraphUtils.to_pydot(self.G)
195195
tmp_png = pyd.create_png(f="png")
196+
pyd.write_png("result.png")
196197
fp = io.BytesIO(tmp_png)
197198
img = mpimg.imread(fp, format='png')
198199
plt.axis('off')
199200
plt.imshow(img)
200201
plt.show()
201-
202-

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with open('README.md', 'r') as fh:
44
README = fh.read()
55

6-
VERSION = '0.1.1.8'
6+
VERSION = '0.1.1.9'
77

88
setuptools.setup(
99
name='causal-learn',

tests/result.png

91.5 KB
Loading

0 commit comments

Comments
 (0)