Skip to content

Commit 6eae592

Browse files
committed
New try
1 parent 415a514 commit 6eae592

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ examples/*/*.svgz
7979
examples/tests/*
8080
!examples/tests/backend_driver_sgskip.py
8181
result_images
82-
doc/_static/constrained_layout/*.png
82+
doc/_static/constrained_layout*.png
8383

8484
# Nose/Pytest generated files #
8585
###############################

tutorials/intermediate/constrainedlayout_guide.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,13 @@ def example_plot(ax, fontsize=12, hide_labels=False):
230230
leg.set_in_layout(True)
231231
# we don't want the layout to change at this point.
232232
fig.set_constrained_layout(False)
233-
print(os.getcwd())
234-
fig.savefig('../../doc/_images/CL01tight.png',
233+
fig.savefig('../../doc/_static/constrained_layout_1b.png',
235234
bbox_inches='tight', dpi=100)
236235

237236
#############################################
238237
# The saved file looks like:
239238
#
240-
# .. image:: /_images/constrained_layout/CL01.png
239+
# .. image:: /_static/constrained_layout_1b.png
241240
# :align: center
242241
#
243242
# A better way to get around this awkwardness is to simply
@@ -248,13 +247,13 @@ def example_plot(ax, fontsize=12, hide_labels=False):
248247
labels = [l.get_label() for l in lines]
249248
leg = fig.legend(lines, labels, loc='center left',
250249
bbox_to_anchor=(0.8, 0.5), bbox_transform=axs[1].transAxes)
251-
fig.savefig('../../doc/_images/constrained_layout/CL02.png',
250+
fig.savefig('../../doc/_static/constrained_layout_2b.png',
252251
bbox_inches='tight', dpi=100)
253252

254253
#############################################
255254
# The saved file looks like:
256255
#
257-
# .. image:: /_images/constrained_layout/CL02.png
256+
# .. image:: /_static/constrained_layout_2b.png
258257
# :align: center
259258
#
260259

0 commit comments

Comments
 (0)