Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions uxarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,7 @@ def to_raster(
else:

def _is_default_extent() -> bool:
# Default extents are indicated by xlim/ylim being (0, 1)
# when autoscale is still on (no extent has been explicitly set)
if not ax.get_autoscale_on():
return False
xlim, ylim = ax.get_xlim(), ax.get_ylim()
return np.allclose(xlim, (0.0, 1.0)) and np.allclose(ylim, (0.0, 1.0))
return ax.get_autoscale_on()

if _is_default_extent():
try:
Expand Down
Loading