fudii0921 commited on
Commit
4297086
·
verified ·
1 Parent(s): 4e718bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,8 +47,8 @@ def create_graph(text):
47
 
48
  def visualize_graph(graph):
49
  for key, value in plt.rcParams.items():
50
- print(f"{key}: {value}")
51
- plt.rcParams['font.family'] = ['DejaVu Sans', 'IPAexGothic']
52
  plt.figure(figsize=(12, 8))
53
  pos = nx.spring_layout(graph._graph)
54
  nx.draw(graph._graph, pos, with_labels=True, node_color='lightblue', node_size=500, font_size=8, font_weight='bold')
 
47
 
48
  def visualize_graph(graph):
49
  for key, value in plt.rcParams.items():
50
+ print(f"font: {key}: {value}")
51
+ plt.rcParams['font.family'] = ['IPAexGothic', 'DejaVu Sans']
52
  plt.figure(figsize=(12, 8))
53
  pos = nx.spring_layout(graph._graph)
54
  nx.draw(graph._graph, pos, with_labels=True, node_color='lightblue', node_size=500, font_size=8, font_weight='bold')