File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ def stacked_barh_plot(
164164 plt .rcParams .update ({"font.family" : "monospace" , "figure.dpi" : 300 })
165165
166166 height = max (2.5 , 1 + len (data ) * 0.5 )
167- ax = plt .subplots (figsize = (8 , height ), layout = "constrained" )
167+ fig , ax = plt .subplots (figsize = (8 , height ), layout = "constrained" )
168168
169169 colors = colormaps ["tab10" ].colors
170170 left = [0 ] * len (data )
@@ -201,10 +201,9 @@ def stacked_barh_plot(
201201
202202 plt .suptitle (title )
203203 plt .annotate (
204- f"Creative Commons (CC)\n "
205- f"bar x scale: { xscale or 'linear' } , data from { args .quarter } " (
206- 0.95 , 5
207- ),
204+ f"Creative Commons (CC)\n bar x scale: { xscale } , data from"
205+ f" { args .quarter } " ,
206+ (0.95 , 5 ),
208207 xycoords = ("figure fraction" , "figure points" ),
209208 color = "gray" ,
210209 fontsize = "x-small" ,
You can’t perform that action at this time.
0 commit comments