From ac873822c5a7d7640a17c491567d9b5060684db1 Mon Sep 17 00:00:00 2001 From: gabriele Date: Fri, 24 Nov 2023 10:38:17 +0100 Subject: [PATCH] default background as grey color for vtk plotters --- src/fracability/Plotters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fracability/Plotters.py b/src/fracability/Plotters.py index acb95ba..c0b56c9 100644 --- a/src/fracability/Plotters.py +++ b/src/fracability/Plotters.py @@ -308,6 +308,7 @@ def vtkplot_fractures(entity, """ plotter = Plotter() + plotter.background_color = 'gray' plotter.view_xy() plotter.enable_image_style() @@ -359,6 +360,7 @@ def vtkplot_boundaries(entity, :return: If return_plot is true a matplotlib axis is returned """ plotter = Plotter() + plotter.background_color = 'gray' plotter.view_xy() plotter.enable_image_style() @@ -398,10 +400,10 @@ def vtkplot_frac_net(entity, """ plotter = Plotter() + plotter.background_color = 'gray' plotter.view_xy() plotter.add_camera_orientation_widget() plotter.enable_image_style() - plotter.background_color = 'gray' nodes = entity.nodes fractures = entity.fractures