darwinharianto commited on
Commit
e8ae966
·
1 Parent(s): 59a5e68

fixed scaling

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -65,9 +65,10 @@ class BinPacking:
65
 
66
  def visualize(self):
67
  fig = go.Figure()
 
68
  fig.update_layout(
69
  autosize=False,
70
- width=500,
71
  height=500,
72
  margin=dict(
73
  l=50,
 
65
 
66
  def visualize(self):
67
  fig = go.Figure()
68
+ widthScale = self.width/self.height
69
  fig.update_layout(
70
  autosize=False,
71
+ width=500*widthScale,
72
  height=500,
73
  margin=dict(
74
  l=50,