File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,21 @@ def test_field_elemental_nodal_plot_scoped(simple_bar):
231231 remove_picture (picture )
232232
233233
234+ @pytest .mark .skipif (not HAS_PYVISTA , reason = "Please install pyvista" )
235+ def test_field_elemental_nodal_plot_multiple_solid_types ():
236+ model = Model (simple_bar )
237+ stress = model .results .element_nodal_forces ()
238+ fc = stress .outputs .fields_container ()
239+ f = fc [0 ]
240+ print (f .data .shape )
241+ f .plot ()
242+ picture = 'test_plotter1.png'
243+ remove_picture (picture )
244+ f .plot (off_screen = True , screenshot = picture )
245+ assert os .path .exists (os .path .join (os .getcwd (), picture ))
246+ remove_picture (picture )
247+
248+
234249@pytest .mark .skipif (not HAS_PYVISTA , reason = "Please install pyvista" )
235250def test_field_solid_plot (allkindofcomplexity ):
236251 model = Model (allkindofcomplexity )
You can’t perform that action at this time.
0 commit comments