def get_extents(self, element, ranges, range_type='<STR_LIT>'):
proj = self.projection<EOL>if self.global_extent and range_type in ('<STR_LIT>', '<STR_LIT:data>'):<EOL><INDENT>(x0, x1), (y0, y1) = proj.x_limits, proj.y_limits<EOL>return (x0, y0, x1, y1)<EOL><DEDENT>extents = super(ProjectionPlot, self).get_extents(element, ranges, range_type)<EOL>if not getattr(element, '<STR_LIT>', None) or not self.geographic:<EOL><INDENT>return extents<EOL><DEDENT>elif any(e is None or not np.isfinite(e) for e in extents):<EOL><INDENT>extents = None<EOL><DEDENT>else:<EOL><INDENT>extents = project_extents(extents, element.crs, proj)<EOL><DEDENT>return (np.NaN,)*<NUM_LIT:4> if not extents else extents<EOL>
Subclasses the get_extents method using the GeoAxes
set_extent method to project the extents to the
Elements coordinate reference system.