Skip to content

Commit

Permalink
default background as grey color for vtk plotters
Browse files Browse the repository at this point in the history
  • Loading branch information
gbene committed Nov 24, 2023
1 parent 7e17a78 commit ac87382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fracability/Plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def vtkplot_fractures(entity,
"""

plotter = Plotter()
plotter.background_color = 'gray'
plotter.view_xy()
plotter.enable_image_style()

Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac87382

Please sign in to comment.