4848
4949# Window size extension
5050X , Y = [0 , 0 ], [0 , - 8 ]
51- plt .plot (X , Y , color = "black " , linestyle = ":" , linewidth = 1 , clip_on = False )
51+ plt .plot (X , Y , color = "gray " , zorder = 0 , linewidth = 1 , clip_on = False )
5252
5353X , Y = [100 , 100 ], [0 , - 8 ]
54- plt .plot (X , Y , color = "black " , linestyle = ":" , linewidth = 1 , clip_on = False )
54+ plt .plot (X , Y , color = "gray " , zorder = 0 , linewidth = 1 , clip_on = False )
5555
5656X , Y = [100 , 108 ], [0 , 0 ]
57- plt .plot (X , Y , color = "black " , linestyle = ":" , linewidth = 1 , clip_on = False )
57+ plt .plot (X , Y , color = "gray " , zorder = 0 , linewidth = 1 , clip_on = False )
5858
5959X , Y = [100 , 108 ], [75 , 75 ]
60- plt .plot (X , Y , color = "black " , linestyle = ":" , linewidth = 1 , clip_on = False )
60+ plt .plot (X , Y , color = "gray " , zorder = 0 , linewidth = 1 , clip_on = False )
6161
6262
6363def ext_arrow (p0 , p1 , p2 , p3 ):
6464 p0 , p1 = np .asarray (p0 ), np .asarray (p1 )
6565 p2 , p3 = np .asarray (p2 ), np .asarray (p3 )
6666 ax .arrow (* p0 , * (p1 - p0 ), zorder = 20 , linewidth = 0 ,
6767 length_includes_head = True , width = .4 ,
68- head_width = 2 , head_length = 2 , color = "black " )
68+ head_width = 2 , head_length = 2 , color = "gray " )
6969 ax .arrow (* p3 , * (p2 - p3 ), zorder = 20 , linewidth = 0 ,
7070 length_includes_head = True , width = .4 ,
71- head_width = 2 , head_length = 2 , color = "black " )
72- plt .plot ([p1 [0 ], p2 [0 ]], [p1 [1 ], p2 [1 ]], linewidth = .9 , color = "black " )
71+ head_width = 2 , head_length = 2 , color = "gray " )
72+ plt .plot ([p1 [0 ], p2 [0 ]], [p1 [1 ], p2 [1 ]], zorder = 20 , linewidth = .9 , color = "gray " )
7373
7474
7575def int_arrow (p0 , p1 ):
7676 p0 , p1 = np .asarray (p0 ), np .asarray (p1 )
7777 ax .arrow (* ((p0 + p1 )/ 2 ), * ((p1 - p0 )/ 2 ), zorder = 20 , linewidth = 0 ,
7878 length_includes_head = True , width = .4 ,
79- head_width = 2 , head_length = 2 , color = "black " )
79+ head_width = 2 , head_length = 2 , color = "gray " )
8080 ax .arrow (* ((p0 + p1 )/ 2 ), * (- (p1 - p0 )/ 2 ), zorder = 20 , linewidth = 0 ,
8181 length_includes_head = True , width = .4 ,
82- head_width = 2 , head_length = 2 , color = "black " )
82+ head_width = 2 , head_length = 2 , color = "gray " )
8383
8484
8585x = 0
@@ -91,22 +91,24 @@ def int_arrow(p0, p1):
9191ext_arrow ( (x - 4 , y ), (x , y ), (x + 5 , y ), (x + 9 , y ) )
9292ax .text (x - 4.5 , y , "wspace" , ha = "right" , va = "center" , size = "x-small" , zorder = 20 )
9393
94- x += 45
95- ext_arrow ( (x - 4 , y ), (x , y ), (x + 5 , y ), (x + 9 , y ) )
96- ax .text (x - 4.5 , y , "right" , ha = "right" , va = "center" , size = "x-small" , zorder = 20 )
94+ y = 20
95+ int_arrow ( (0 , y ), (95 , y ))
96+ ax .text (80 , y , "right" , backgroundcolor = "white" , ha = "right" , va = "center" ,
97+ size = "x-small" , zorder = 30 )
9798
9899y = 0
99- x = 25
100+ x = 22.5
100101ext_arrow ( (x , y - 4 ), (x , y ), (x , y + 5 ), (x , y + 9 ) )
101102ax .text (x , y + 9.5 , "bottom" , ha = "center" , va = "bottom" , size = "x-small" , zorder = 20 )
102103
103104y += 35
104105ext_arrow ( (x , y - 4 ), (x , y ), (x , y + 5 ), (x , y + 9 ) )
105106ax .text (x , y - 4.5 , "hspace" , ha = "center" , va = "top" , size = "x-small" , zorder = 20 )
106107
107- y += 35
108- ext_arrow ( (x , y - 4 ), (x , y ), (x , y + 5 ), (x , y + 9 ) )
109- ax .text (x , y - 4.5 , "top" , ha = "center" , va = "top" , size = "x-small" , zorder = 20 )
108+ x = 31
109+ int_arrow ( (x , 0 ), (x , 70 ))
110+ ax .text (x , 55 , "top" , backgroundcolor = "white" , rotation = "vertical" ,
111+ ha = "center" , va = "center" , size = "x-small" , zorder = 30 )
110112
111113int_arrow ((0 , - 5 ), (100 , - 5 ))
112114ax .text (50 , - 5 , "figure width" , backgroundcolor = "white" , zorder = 30 ,
0 commit comments