Skip to content

Issue with shared axis labels on geographic axis #234

@lwq-star

Description

@lwq-star

Referencing this conversation #155 , everything works normally, but looping through each subplot to plot causes a bug.

import ultraplot as uplt
import numpy as np

fig, axs = uplt.subplots(ncols=2, nrows=3, span=False, share='all', proj="cyl",
                         journal='nat2')
axs.format(abc=True, abcloc="ul", lonlabels='both', latlabels='both')

Image

This is my example.

import ultraplot as uplt
import numpy as np

fig, axs = uplt.subplots(ncols=2, nrows=3, span=False, share='all', proj="cyl",
                         journal='nat2')
axs.format(abc=True, abcloc="ul", lonlabels='both', latlabels='both')

a = np.random.rand(10, 10) * 2 - 1

for idx in range(6):
    ax = axs[idx]
    m = ax.pcolormesh(a, cmap="viridis")
fig.colorbar(m, label="ac1", ticks=4, loc="r")

Image
There might be some conflicts that have arisen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions