@@ -72,32 +72,31 @@ def __init__(self, parent=None, name='', tightwidth=False,
72
72
# keep track of whether we need to match this subplot up with others.
73
73
self .subplot = subplot
74
74
75
- # we need the str below for Py 2 which complains the string is unicode
76
- self .top = Variable (str (sn + 'top' ))
77
- self .bottom = Variable (str (sn + 'bottom' ))
78
- self .left = Variable (str (sn + 'left' ))
79
- self .right = Variable (str (sn + 'right' ))
80
-
81
- self .width = Variable (str (sn + 'width' ))
82
- self .height = Variable (str (sn + 'height' ))
83
- self .h_center = Variable (str (sn + 'h_center' ))
84
- self .v_center = Variable (str (sn + 'v_center' ))
85
-
86
- self .min_width = Variable (str (sn + 'min_width' ))
87
- self .min_height = Variable (str (sn + 'min_height' ))
88
- self .pref_width = Variable (str (sn + 'pref_width' ))
89
- self .pref_height = Variable (str (sn + 'pref_height' ))
75
+ self .top = Variable (sn + 'top' )
76
+ self .bottom = Variable (sn + 'bottom' )
77
+ self .left = Variable (sn + 'left' )
78
+ self .right = Variable (sn + 'right' )
79
+
80
+ self .width = Variable (sn + 'width' )
81
+ self .height = Variable (sn + 'height' )
82
+ self .h_center = Variable (sn + 'h_center' )
83
+ self .v_center = Variable (sn + 'v_center' )
84
+
85
+ self .min_width = Variable (sn + 'min_width' )
86
+ self .min_height = Variable (sn + 'min_height' )
87
+ self .pref_width = Variable (sn + 'pref_width' )
88
+ self .pref_height = Variable (sn + 'pref_height' )
90
89
# margins are only used for axes-position layout boxes. maybe should
91
90
# be a separate subclass:
92
- self .left_margin = Variable (str ( sn + 'left_margin' ) )
93
- self .right_margin = Variable (str ( sn + 'right_margin' ) )
94
- self .bottom_margin = Variable (str ( sn + 'bottom_margin' ) )
95
- self .top_margin = Variable (str ( sn + 'top_margin' ) )
91
+ self .left_margin = Variable (sn + 'left_margin' )
92
+ self .right_margin = Variable (sn + 'right_margin' )
93
+ self .bottom_margin = Variable (sn + 'bottom_margin' )
94
+ self .top_margin = Variable (sn + 'top_margin' )
96
95
# mins
97
- self .left_margin_min = Variable (str ( sn + 'left_margin_min' ) )
98
- self .right_margin_min = Variable (str ( sn + 'right_margin_min' ) )
99
- self .bottom_margin_min = Variable (str ( sn + 'bottom_margin_min' ) )
100
- self .top_margin_min = Variable (str ( sn + 'top_margin_min' ) )
96
+ self .left_margin_min = Variable (sn + 'left_margin_min' )
97
+ self .right_margin_min = Variable (sn + 'right_margin_min' )
98
+ self .bottom_margin_min = Variable (sn + 'bottom_margin_min' )
99
+ self .top_margin_min = Variable (sn + 'top_margin_min' )
101
100
102
101
right , top = upper_right
103
102
left , bottom = lower_left
0 commit comments