Skip to content

Commit 631a246

Browse files
committed
set width and height to previous values
1 parent ad52eb3 commit 631a246

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

matplotlib/pyplot/__init__.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ jsplotlib.plot = function(chart) {
894894
* ratio for the input values.
895895
*/
896896
that._update_chart_ratio = function() {
897-
var maxHeight = 800;
898-
var maxWidth = 800;
897+
var maxHeight = 480;
898+
var maxWidth = 640;
899899

900900
// save original values for recalculations
901901
if (!that._originalWidth || !that._originalHeight) {
@@ -1824,7 +1824,7 @@ var $builtinmodule = function(name) {
18241824
if (!chart) {
18251825
$('#' + Sk.canvas).empty();
18261826
// min height and width
1827-
chart = jsplotlib.make_chart(600, 600, "#" + Sk.canvas);
1827+
chart = jsplotlib.make_chart(400, 400, "#" + Sk.canvas);
18281828
}
18291829
};
18301830

0 commit comments

Comments
 (0)