Skip to content

ticklen=1 breaks with cyl projection when lon0=180 — pixel overflow error or misaligned ticks #828

Closed

Description

@xiaochen30

Setting ticklen=1 in ax.format() fails when the cyl projection is centered on lon0=180.

import ultraplot as uplt
fig, axs = uplt.subplots(proj='cyl', proj_kw={'lon0': 180})
axs.format(coast=True, lonlabels=True, latlabels=True, ticklen=1)
Without limits — raises pixel-size overflow: ValueError: Image size of 594x900064 pixels is too large.

fig, axs = uplt.subplots(proj='cyl', proj_kw={'lon0': 180})
axs.format(lonlim=(95, 200), latlim=(10, 40), coast=True, lonlabels=True, latlabels=True, ticklen=1)
With lonlim/latlim — no error, but ticks are misaligned (screenshot attached).

Environment: ultraplot (2.6.0), Windows.
Image

Activity

  1. cvanelteren commented on Sep 28, 2026

    @cvanelteren
    Collaborator

    Thanks! Fixed on main

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