Coverage for /usr/local/lib/python3.11/dist-packages/grond/problems/volume_point/plot.py: 43%

14 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2024-11-27 15:15 +0000

1# https://pyrocko.org/grond - GPLv3 

2# 

3# The Grond Developers, 21st Century 

4from ..plot import MTLocationPlot 

5from pyrocko.plot import mpl_init 

6 

7 

8class VolumePointLocationPlot(MTLocationPlot): 

9 name = 'location_volume' 

10 beachball_type = 'full' 

11 

12 def make(self, environ): 

13 environ.setup_modelling() 

14 cm = environ.get_plot_collection_manager() 

15 history = environ.get_history(subset='harvest') 

16 mpl_init(fontsize=self.font_size) 

17 self._to_be_closed = [] 

18 cm.create_group_mpl( 

19 self, 

20 self.draw_figures(history), 

21 title=u'Volume Location', 

22 section='solution', 

23 feather_icon='target', 

24 description=u''' 

25Location plot of the ensemble of best solutions in three cross-sections. 

26 

27The coordinate range is defined by the search space given in the config file. 

28Symbols show best volume locations, and colors indicate low (red) and 

29high (blue) misfit. 

30''') 

31 for obj in self._to_be_closed: 

32 obj.close()