@@ -1107,15 +1107,15 @@ def __init__(self, *args, **kwargs):
1107
1107
self .fc = volface (self .el )[0 ]
1108
1108
1109
1109
def test_plotmesh_face (self ):
1110
- patch = plotmesh (self .no , self .fc , "hide " , True )
1110
+ patch = plotmesh (self .no , self .fc , "hold " , True )
1111
1111
facecolors = np .array (patch [0 ].get_facecolors ())
1112
1112
expected_fc = [9.0 , 8.6803 , 9.0 , 20.0 ]
1113
1113
1114
1114
self .assertEqual (len (facecolors ), 20 )
1115
1115
self .assertEqual (np .round (np .sum (facecolors , axis = 0 ), 4 ).tolist (), expected_fc )
1116
1116
1117
1117
def test_plotmesh_elem (self ):
1118
- patch = plotmesh (self .no , self .el , "hide " , True )
1118
+ patch = plotmesh (self .no , self .el , "hold " , True )
1119
1119
facecolors = np .array (patch [0 ].get_facecolors ())
1120
1120
expected_fc = [9.0 , 8.6803 , 9.0 , 20.0 ]
1121
1121
@@ -1126,7 +1126,7 @@ def test_plotmesh_elemlabel(self):
1126
1126
patch = plotmesh (
1127
1127
self .no ,
1128
1128
np .hstack ((self .el , np .ones (self .el .shape [0 ], dtype = int ).reshape (- 1 , 1 ))),
1129
- "hide " ,
1129
+ "hold " ,
1130
1130
True ,
1131
1131
)
1132
1132
facecolors = np .array (patch [0 ].get_facecolors ())
@@ -1140,7 +1140,7 @@ def test_plotmesh_facelabel(self):
1140
1140
self .no ,
1141
1141
np .hstack ((self .fc , np .array ([1 , 2 ] * 10 ).reshape (- 1 , 1 ))),
1142
1142
None ,
1143
- "hide " ,
1143
+ "hold " ,
1144
1144
True ,
1145
1145
)
1146
1146
facecolors = np .array (patch [0 ].get_facecolors ())
@@ -1150,15 +1150,15 @@ def test_plotmesh_facelabel(self):
1150
1150
self .assertEqual (np .unique (facecolors , axis = 0 ).shape , expected_fc )
1151
1151
1152
1152
def test_plotmesh_elemnodeval (self ):
1153
- patch = plotmesh (self .no [:, [0 , 1 , 2 , 0 ]], self .el , "hide " , True )
1153
+ patch = plotmesh (self .no [:, [0 , 1 , 2 , 0 ]], self .el , "hold " , True )
1154
1154
facecolors = np .array (patch [0 ].get_facecolors ())
1155
1155
expected_fc = [8.0 , 10.4074 , 8.0 , 20.0 ]
1156
1156
1157
1157
self .assertEqual (len (facecolors ), 20 )
1158
1158
self .assertEqual (np .round (np .sum (facecolors , axis = 0 ), 4 ).tolist (), expected_fc )
1159
1159
1160
1160
def test_plotmesh_facenodeval (self ):
1161
- patch = plotmesh (self .no [:, [0 , 1 , 2 , 0 ]], self .fc , "z < 3" , "hide " , True )
1161
+ patch = plotmesh (self .no [:, [0 , 1 , 2 , 0 ]], self .fc , "z < 3" , "hold " , True )
1162
1162
facecolors = np .array (patch [0 ].get_facecolors ())
1163
1163
expected_fc = [7.0 , 8.6728 , 7.0 , 18.0 ]
1164
1164
@@ -1167,7 +1167,7 @@ def test_plotmesh_facenodeval(self):
1167
1167
1168
1168
def test_plotmesh_selector (self ):
1169
1169
patch = plotmesh (
1170
- self .no [:, [0 , 1 , 2 , 0 ]], self .fc , "(z < 3) & (x < 2)" , "hide " , True
1170
+ self .no [:, [0 , 1 , 2 , 0 ]], self .fc , "(z < 3) & (x < 2)" , "hold " , True
1171
1171
)
1172
1172
facecolors = np .array (patch [0 ].get_facecolors ())
1173
1173
expected_fc = [4.8877 , 5.0 , 4.451 , 14.0 ]
@@ -1176,7 +1176,7 @@ def test_plotmesh_selector(self):
1176
1176
self .assertEqual (np .round (np .sum (facecolors , axis = 0 ), 4 ).tolist (), expected_fc )
1177
1177
1178
1178
def test_plotmesh_elemselector (self ):
1179
- patch = plotmesh (self .no , self .fc , "z < 2.5" , "hide " , True )
1179
+ patch = plotmesh (self .no , self .fc , "z < 2.5" , "hold " , True )
1180
1180
facecolors = np .array (patch [0 ].get_facecolors ())
1181
1181
expected_fc = [3.9102 , 4.0 , 2.9608 , 10.0 ]
1182
1182
0 commit comments