Skip to content

Commit

Permalink
set width and height to previous values
Browse files Browse the repository at this point in the history
  • Loading branch information
albertjan committed Apr 29, 2018
1 parent ad52eb3 commit 631a246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matplotlib/pyplot/__init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ jsplotlib.plot = function(chart) {
* ratio for the input values.
*/
that._update_chart_ratio = function() {
var maxHeight = 800;
var maxWidth = 800;
var maxHeight = 480;
var maxWidth = 640;

// save original values for recalculations
if (!that._originalWidth || !that._originalHeight) {
Expand Down Expand Up @@ -1824,7 +1824,7 @@ var $builtinmodule = function(name) {
if (!chart) {
$('#' + Sk.canvas).empty();
// min height and width
chart = jsplotlib.make_chart(600, 600, "#" + Sk.canvas);
chart = jsplotlib.make_chart(400, 400, "#" + Sk.canvas);
}
};

Expand Down

0 comments on commit 631a246

Please sign in to comment.