Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e74800a + 6da1328 commit 285c119Copy full SHA for 285c119
1 file changed
lib/matplotlib/backends/web_backend/js/mpl.js
@@ -346,7 +346,7 @@ mpl.figure.prototype.handle_rubberband = function(fig, msg) {
346
var height = Math.abs(y1 - y0);
347
348
fig.rubberband_context.clearRect(
349
- 0, 0, fig.canvas.width, fig.canvas.height);
+ 0, 0, fig.canvas.width / mpl.ratio, fig.canvas.height / mpl.ratio);
350
351
fig.rubberband_context.strokeRect(min_x, min_y, width, height);
352
}
0 commit comments