2020spacing = 1.2
2121
2222figheight = (spacing * len (styles ) + .5 )
23- fig1 = plt .figure (1 , (4 / 1.5 , figheight / 1.5 ))
23+ fig1 = plt .figure (1 , (4 / 1.5 , figheight / 1.5 ))
2424fontsize = 0.3 * 72
2525
2626for i , stylename in enumerate (sorted (styles )):
@@ -65,8 +65,8 @@ def test1(ax):
6565 size = 10 , transform = ax .transAxes )
6666
6767 # draws control points for the fancy box.
68- #l = p_fancy.get_path().vertices
69- #ax.plot(l[:,0], l[:,1], ".")
68+ # l = p_fancy.get_path().vertices
69+ # ax.plot(l[:,0], l[:,1], ".")
7070
7171 # draw the original bbox in black
7272 draw_bbox (ax , bb )
@@ -90,15 +90,15 @@ def test2(ax):
9090
9191 p_fancy .set_boxstyle ("round,pad=0.1, rounding_size=0.2" )
9292 # or
93- #p_fancy.set_boxstyle("round", pad=0.1, rounding_size=0.2)
93+ # p_fancy.set_boxstyle("round", pad=0.1, rounding_size=0.2)
9494
9595 ax .text (0.1 , 0.8 ,
9696 ' boxstyle="round,pad=0.1\n rounding_size=0.2"' ,
9797 size = 10 , transform = ax .transAxes )
9898
9999 # draws control points for the fancy box.
100- #l = p_fancy.get_path().vertices
101- #ax.plot(l[:,0], l[:,1], ".")
100+ # l = p_fancy.get_path().vertices
101+ # ax.plot(l[:,0], l[:,1], ".")
102102
103103 draw_bbox (ax , bb )
104104
@@ -122,8 +122,8 @@ def test3(ax):
122122 size = 10 , transform = ax .transAxes )
123123
124124 # draws control points for the fancy box.
125- #l = p_fancy.get_path().vertices
126- #ax.plot(l[:,0], l[:,1], ".")
125+ # l = p_fancy.get_path().vertices
126+ # ax.plot(l[:,0], l[:,1], ".")
127127
128128 draw_bbox (ax , bb )
129129
@@ -192,4 +192,5 @@ def test_all():
192192 plt .draw ()
193193 plt .show ()
194194
195+
195196test_all ()
0 commit comments