@@ -229,12 +229,13 @@ def example_plot(ax, fontsize=12, hide_labels=False):
229229leg .set_in_layout (True )
230230# we don't want the layout to change at this point.
231231fig .set_constrained_layout (False )
232- fig .savefig ('CL01.png' , bbox_inches = 'tight' , dpi = 100 )
232+ fig .savefig ('../../doc/_static/constrained_layout_1b.png' ,
233+ bbox_inches = 'tight' , dpi = 100 )
233234
234235#############################################
235236# The saved file looks like:
236237#
237- # .. image:: /_static/constrained_layout/CL01 .png
238+ # .. image:: /_static/constrained_layout_1b .png
238239# :align: center
239240#
240241# A better way to get around this awkwardness is to simply
@@ -245,12 +246,13 @@ def example_plot(ax, fontsize=12, hide_labels=False):
245246labels = [l .get_label () for l in lines ]
246247leg = fig .legend (lines , labels , loc = 'center left' ,
247248 bbox_to_anchor = (0.8 , 0.5 ), bbox_transform = axs [1 ].transAxes )
248- fig .savefig ('CL02.png' , bbox_inches = 'tight' , dpi = 100 )
249+ fig .savefig ('../../doc/_static/constrained_layout_2b.png' ,
250+ bbox_inches = 'tight' , dpi = 100 )
249251
250252#############################################
251253# The saved file looks like:
252254#
253- # .. image:: /_static/constrained_layout/CL02 .png
255+ # .. image:: /_static/constrained_layout_2b .png
254256# :align: center
255257#
256258
0 commit comments