Skip to content

Bug: formatter.log=True not respected in ax.format #436

@syrte

Description

@syrte

Description
When uplt.rc["formatter.log"] = True, log formatting is correctly applied via ax.loglog(), ax.semilogx() etc, but ignored when setting the scale via ax.format().

Minimal Reproducible Example

import ultraplot as uplt
import numpy as np

uplt.rc["formatter.log"] = True
fig, ax = uplt.subplots()

# Applied correctly
ax.semilogx(np.linspace(1, 100)) 

# Applied incorrectly (remains scalar)
ax.format(yscale='log') 

uplt: 1.66.0
mpl: 3.10.8

Expected Behavior
Both axes should display labels in log format.

Actual Behavior
Only the axis initialized via semilogx uses log formatting. The axis set via ax.format(yscale='log') uses standard scalar labels.

Image

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