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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def create_graph(text):
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']
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')
 
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')