Skip to content

Commit fcdc531

Browse files
committed
remove mpl
1 parent da74257 commit fcdc531

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

src/compas_tno/utilities/symmetry.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import matplotlib.pyplot as plt
21
from numpy import zeros
32

43
from compas.geometry import closest_point_on_line_xy
@@ -287,10 +286,12 @@ def build_symmetry_matrix(form, printout=False):
287286
Asym[line, index] = -1
288287
line += 1
289288
i += 1
289+
290290
if printout:
291-
plt.matshow(Asym)
292-
plt.colorbar()
293-
plt.show()
291+
raise NotImplementedError
292+
# plt.matshow(Asym)
293+
# plt.colorbar()
294+
# plt.show()
294295

295296
return Asym
296297

@@ -326,9 +327,10 @@ def build_symmetry_transformation(form, printout=False):
326327
Esym[:, id_sym] = Ei.flatten()
327328

328329
if printout:
329-
plt.matshow(Esym)
330-
plt.colorbar()
331-
plt.show()
330+
raise NotImplementedError
331+
# plt.matshow(Esym)
332+
# plt.colorbar()
333+
# plt.show()
332334

333335
return Esym
334336

@@ -363,9 +365,10 @@ def build_vertex_symmetry_transformation(form, printout=False):
363365
Evsym[:, id_sym] = Ei.flatten()
364366

365367
if printout:
366-
plt.matshow(Evsym)
367-
plt.colorbar()
368-
plt.show()
368+
raise NotImplementedError
369+
# plt.matshow(Evsym)
370+
# plt.colorbar()
371+
# plt.show()
369372

370373
return Evsym
371374

@@ -410,8 +413,9 @@ def build_symmetry_matrix_supports(form, printout=False):
410413
line += 1
411414
i += 1
412415
if printout:
413-
plt.matshow(Asym)
414-
plt.colorbar()
415-
plt.show()
416+
raise NotImplementedError
417+
# plt.matshow(Asym)
418+
# plt.colorbar()
419+
# plt.show()
416420

417421
return Asym

0 commit comments

Comments
 (0)