X Tutup
Skip to content

test_axes:test_polar_unit broke unintentionally #5530

@mdboom

Description

@mdboom

In #5307, where I am lowering our testing tolerance down to zero, I am discovering a few recent changes that slipped through because the tolerance on our tests was too high.

The test broke somewhere in ebb2e63, ef683df or c326744 (not all of those commits are buildable).

BASELINE IMAGE:

polar_units_2-expected

CURRENT RESULT:

polar_units_2

Test code:

    fig = plt.figure()

    # make sure runits and theta units work
    y1 = [y*km for y in y1]
    plt.polar(x2, y1, color="blue", thetaunits="rad", runits="km")
    assert_true(isinstance(plt.gca().get_xaxis().get_major_formatter(), units.UnitDblFormatter))

Cc: @cimarronm as the author of the bisect commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup