@@ -207,21 +207,26 @@ def _plotInternal(self):
207207 create_renderer = True )
208208 actors .append ([act , plotting_dataset_bounds ])
209209
210+ t = self ._originalData1 .getTime ()
211+ if self ._originalData1 .ndim > 2 :
212+ z = self ._originalData1 .getAxis (- 3 )
213+ else :
214+ z = None
210215 self ._resultDict ["vtk_backend_actors" ] = actors
211216 kwargs = {"vtk_backend_grid" : self ._vtkDataSet ,
212217 "dataset_bounds" : self ._vtkDataSetBounds ,
213218 "plotting_dataset_bounds" : plotting_dataset_bounds ,
214219 "vtk_backend_geo" : self ._vtkGeoTransform }
215220 if ("ratio_autot_viewport" in self ._resultDict ):
216221 kwargs ["ratio_autot_viewport" ] = vp
217- self ._template . plot (self ._context ().canvas , self ._data1 , self ._gm ,
218- bg = self . _context (). bg ,
219- X = numpy .arange (min (x1 , x2 ),
220- max (x1 , x2 ) * 1.1 ,
221- abs (x2 - x1 ) / 10. ),
222- Y = numpy .arange (min (y1 , y2 ),
223- max (y1 , y2 ) * 1.1 ,
224- abs (y2 - y1 ) / 10. ), ** kwargs )
222+ self ._resultDict . update (self ._context ().renderTemplate ( self . _template , self ._data1 , self ._gm ,
223+ t , z ,
224+ X = numpy .arange (min (x1 , x2 ),
225+ max (x1 , x2 ) * 1.1 ,
226+ abs (x2 - x1 ) / 10. ),
227+ Y = numpy .arange (min (y1 , y2 ),
228+ max (y1 , y2 ) * 1.1 ,
229+ abs (y2 - y1 ) / 10. ), ** kwargs ) )
225230
226231 legend = getattr (self ._gm , "legend" , None )
227232
0 commit comments