HugoVoxx commited on
Commit
32f7bc9
·
verified ·
1 Parent(s): 7b5219c

Upload 2 files

Browse files
ag4masses/alphageometry/alphageometry.py CHANGED
@@ -234,12 +234,12 @@ def run_ddar(g: gh.Graph, p: pr.Problem, out_file: str) -> bool:
234
  return False
235
 
236
  write_solution(g, p, out_file)
237
-
238
  gh.nm.draw(
239
  g.type2nodes[gh.Point],
240
  g.type2nodes[gh.Line],
241
  g.type2nodes[gh.Circle],
242
  g.type2nodes[gh.Segment],
 
243
  save_to="ag4mout/output.png",)
244
  return True
245
 
 
234
  return False
235
 
236
  write_solution(g, p, out_file)
 
237
  gh.nm.draw(
238
  g.type2nodes[gh.Point],
239
  g.type2nodes[gh.Line],
240
  g.type2nodes[gh.Circle],
241
  g.type2nodes[gh.Segment],
242
+ goal=(p.goal.name, goal_args),
243
  save_to="ag4mout/output.png",)
244
  return True
245
 
ag4masses/alphageometry/numericals.py CHANGED
@@ -27,7 +27,7 @@ import numpy as np
27
  from numpy.random import uniform as unif # pylint: disable=g-importing-member
28
 
29
 
30
- matplotlib.use('Agg')
31
 
32
 
33
  ATOM = 1e-12
@@ -1210,7 +1210,7 @@ def draw(
1210
  equals: list[tuple[Any, Any]] = None,
1211
  block: bool = True,
1212
  save_to: str = None,
1213
- theme: str = 'light',
1214
  ) -> None:
1215
  """Draw everything on the same canvas."""
1216
  plt.close()
 
27
  from numpy.random import uniform as unif # pylint: disable=g-importing-member
28
 
29
 
30
+ matplotlib.use('TkAgg')
31
 
32
 
33
  ATOM = 1e-12
 
1210
  equals: list[tuple[Any, Any]] = None,
1211
  block: bool = True,
1212
  save_to: str = None,
1213
+ theme: str = 'dark',
1214
  ) -> None:
1215
  """Draw everything on the same canvas."""
1216
  plt.close()