JetBrains / JetBrains/lets-plot
Poor performance of tooltips on `geom_tile()`
- Dominant language
- Kotlin
- Stars
- 1.8k
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
Code snippet:
```python
import numpy as np
from scipy.stats import multivariate_normal
from lets_plot import *
LetsPlot.setup_html()
np.random.seed(42)
n = 200
x = np.linspace(-1, 1, n)
y = np.linspace(-1, 1, n)
X, Y = np.meshgrid(x, y)
mean = np.zeros(2)
cov = [[1, -.5], [-.5, 1]]
rv = multivariate_normal(mean, cov)
Z = rv.pdf(np.dstack((X, Y)))
data = {
'x': X.flatten(),
'y': Y.flatten(),
'z': Z.flatten()
}
ggplot(data) \
+ geom_tile(aes(x='x', y='y', fill='z', color='z'), size=1) \
+ scale_gradient(['color', 'fill'], low='#54278f', high='#f2f0f7') \
```
Tooltips are slow to appear:
https://github.com/JetBrains/lets-plot/assets/14200189/63933803-86db-42e1-8b2b-d66b61df763f
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.