@@ -119,7 +119,7 @@ def _plotInternal(self):
119119 # (we need one for each mapper because of camera flips)
120120 dataset_renderer , xScale , yScale = self ._context ().fitToViewport (
121121 act , vp ,
122- wc = plotting_dataset_bounds , geoBounds = self ._vtkDataSet . GetBounds () ,
122+ wc = plotting_dataset_bounds , geoBounds = self ._vtkDataSetBoundsNoMask ,
123123 geo = self ._vtkGeoTransform ,
124124 priority = self ._template .data .priority ,
125125 create_renderer = (dataset_renderer is None ))
@@ -130,7 +130,7 @@ def _plotInternal(self):
130130 # why so sticking to many mappers
131131 self ._context ().fitToViewport (
132132 act , vp ,
133- wc = plotting_dataset_bounds , geoBounds = self ._vtkDataSet . GetBounds () ,
133+ wc = plotting_dataset_bounds , geoBounds = self ._vtkDataSetBoundsNoMask ,
134134 geo = self ._vtkGeoTransform ,
135135 priority = self ._template .data .priority ,
136136 create_renderer = True )
@@ -146,6 +146,7 @@ def _plotInternal(self):
146146 kwargs = {"vtk_backend_grid" : self ._vtkDataSet ,
147147 "dataset_bounds" : self ._vtkDataSetBounds ,
148148 "plotting_dataset_bounds" : plotting_dataset_bounds ,
149+ "vtk_dataset_bounds_no_mask" : self ._vtkDataSetBoundsNoMask ,
149150 "vtk_backend_geo" : self ._vtkGeoTransform }
150151 if ("ratio_autot_viewport" in self ._resultDict ):
151152 kwargs ["ratio_autot_viewport" ] = vp
@@ -200,9 +201,7 @@ def _plotInternal(self):
200201 continents_renderer , xScale , yScale = self ._context ().plotContinents (
201202 plotting_dataset_bounds , projection ,
202203 self ._dataWrapModulo ,
203- vp , self ._template .data .priority ,
204- vtk_backend_grid = self ._vtkDataSet ,
205- dataset_bounds = self ._vtkDataSetBounds )
204+ vp , self ._template .data .priority , ** kwargs )
206205
207206 def _plotInternalBoxfill (self ):
208207 """Implements the logic to render a non-custom boxfill."""
0 commit comments