Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 14dd281

Browse files
committed
Don't use file name argument to show method
Since 7747261 removed the file name argument to the show method of GraphicsArray (without deprecatuion procedure), we should not document it being called in this way. Instead we can save it to a file (which won't get displayed automatically) to demonstrate the core idea of specifying a custom file name here.
1 parent e56fbea commit 14dd281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/plot/animate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,12 @@ def graphics_array(self, ncols=3):
491491
Graphics Array of size 2 x 3
492492
sage: g.show(figsize=[6,3]) # optional
493493
494-
Specify different arrangement of array and save with different file name::
494+
Specify different arrangement of array and save it with a given file name::
495495
496496
sage: g = a.graphics_array(ncols=2); print g
497497
Graphics Array of size 2 x 2
498498
sage: f = tmp_filename(ext='.png')
499-
sage: g.show(f) # optional
499+
sage: g.save(f) # optional
500500
501501
Frames can be specified as a generator too; it is internally converted to a list::
502502

0 commit comments

Comments
 (0)