Skip to content

Issues with corner label positions under panning/zooming #203

Description

@carlosgmartin

I'm having some issues with the corner labels:

from matplotlib import pyplot as plt
import ternary

scale = 10
fig, ax = plt.subplots(constrained_layout=True)
fig, tax = ternary.figure(scale=scale, ax=ax)
tax.heatmap(data, scale, cmap='gray')
tax.get_axes().axis('off')
tax.clear_matplotlib_ticks()
tax.right_corner_label(1)
tax.top_corner_label(2)
tax.left_corner_label(3)
plt.show()

When the plot is first shown, the corner labels are missing:

Only after panning or zooming once do the labels appear (they also appear in the saved figure, if I save it):

Furthermore, the corner labels are positioned incorrectly under panning or zooming:

I am using macOS 11.7, python 3.10.9, matplotlib 3.6.3, and python-ternary 1.0.8.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions