Skip to content

[Bug] GeoAxes extent got messed up. #517

Description

@gepcel
import ultraplot as pplt
import cartopy.crs as ccrs
fig, ax = pplt.subplot(proj='cyl')
ax.format(lonlim=[0.73, 1.92], latlim=[0.81, 1.97])
print("After set extent using lonlim and latlim:",ax.get_extent())
ax.set_extent([0.73, 1.92, 0.81, 1.97], crs=ccrs.PlateCarree())
print("After set extent using set_extent       :",ax.get_extent())
ax.format(lonlines=.4, latlines=.4, ticklen=0.5)
print("After format something other than extent:",ax.get_extent())

Got result as:

After set extent using lonlim and latlim: (0.22999999999999998, 2.42, 0.31000000000000005, 2.4699999999999998)
After set extent using set_extent       : (0.73, 1.92, 0.81, 1.97)
After format something other than extent: (0.22999999999999998, 2.42, 0.31000000000000005, 2.4699999999999998)

environments:
ultraplot: latest branch with add-chord-diagram i think
cartopy: 0.25.0
matplotlib: 3.10.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions