48
48
49
49
# Window size extension
50
50
X , 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 )
52
52
53
53
X , 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 )
55
55
56
56
X , 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 )
58
58
59
59
X , 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 )
61
61
62
62
63
63
def ext_arrow (p0 , p1 , p2 , p3 ):
64
64
p0 , p1 = np .asarray (p0 ), np .asarray (p1 )
65
65
p2 , p3 = np .asarray (p2 ), np .asarray (p3 )
66
66
ax .arrow (* p0 , * (p1 - p0 ), zorder = 20 , linewidth = 0 ,
67
67
length_includes_head = True , width = .4 ,
68
- head_width = 2 , head_length = 2 , color = "black " )
68
+ head_width = 2 , head_length = 2 , color = "gray " )
69
69
ax .arrow (* p3 , * (p2 - p3 ), zorder = 20 , linewidth = 0 ,
70
70
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 " )
73
73
74
74
75
75
def int_arrow (p0 , p1 ):
76
76
p0 , p1 = np .asarray (p0 ), np .asarray (p1 )
77
77
ax .arrow (* ((p0 + p1 )/ 2 ), * ((p1 - p0 )/ 2 ), zorder = 20 , linewidth = 0 ,
78
78
length_includes_head = True , width = .4 ,
79
- head_width = 2 , head_length = 2 , color = "black " )
79
+ head_width = 2 , head_length = 2 , color = "gray " )
80
80
ax .arrow (* ((p0 + p1 )/ 2 ), * (- (p1 - p0 )/ 2 ), zorder = 20 , linewidth = 0 ,
81
81
length_includes_head = True , width = .4 ,
82
- head_width = 2 , head_length = 2 , color = "black " )
82
+ head_width = 2 , head_length = 2 , color = "gray " )
83
83
84
84
85
85
x = 0
@@ -91,22 +91,24 @@ def int_arrow(p0, p1):
91
91
ext_arrow ( (x - 4 , y ), (x , y ), (x + 5 , y ), (x + 9 , y ) )
92
92
ax .text (x - 4.5 , y , "wspace" , ha = "right" , va = "center" , size = "x-small" , zorder = 20 )
93
93
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 )
97
98
98
99
y = 0
99
- x = 25
100
+ x = 22.5
100
101
ext_arrow ( (x , y - 4 ), (x , y ), (x , y + 5 ), (x , y + 9 ) )
101
102
ax .text (x , y + 9.5 , "bottom" , ha = "center" , va = "bottom" , size = "x-small" , zorder = 20 )
102
103
103
104
y += 35
104
105
ext_arrow ( (x , y - 4 ), (x , y ), (x , y + 5 ), (x , y + 9 ) )
105
106
ax .text (x , y - 4.5 , "hspace" , ha = "center" , va = "top" , size = "x-small" , zorder = 20 )
106
107
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 )
110
112
111
113
int_arrow ((0 , - 5 ), (100 , - 5 ))
112
114
ax .text (50 , - 5 , "figure width" , backgroundcolor = "white" , zorder = 30 ,
0 commit comments