-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Labels
Description
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.