Skip to content

Commit 9b2b02d

Browse files
committed
style: add axis margins to causal graph to prevent large nodes from clipping
1 parent f400a57 commit 9b2b02d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

-22.6 KB
Loading

generate_paper_tables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
font_weight='bold',
9292
arrowsize=20,
9393
)
94+
ax = plt.gca()
95+
ax.margins(0.20)
9496
plt.title('Visual Causal Graph (Pearl Rung-2 SCM)')
9597
plt.savefig('paper_causal_graph.png', dpi=300, bbox_inches='tight')
9698
plt.close()

0 commit comments

Comments
 (0)