Skip to content

TernaryAxesSubplot.scatter() skips first default color in version 1.0.8 #194

@DrGFreeman

Description

@DrGFreeman

Description

The TernaryAxesSubplot.scatter() method skips the first color of the default matplotlib colormap in version 1.0.8.

Steps to reproduce

import ternary

fig, tax = ternary.figure(scale=1)
tax.scatter([(1.1/3, 0.9/3, 1/3)], label="first")
tax.scatter([(0.9/3, 1.1/3, 1/3)], label="second")
tax.legend()
tax.set_title(f"python-ternary {ternary.__version__}")
tax.show()

Expect behavior

The default matplotlib colors are used starting with blue, followed by orange, etc. This is the behavior with version 1.0.7:

image

Actual behavior

The first scatter plot uses the second default matplotlib color (orange), followed by the third (green), etc.:

image

Notes

Matplotlib version used in both cases above: 3.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions