8000 Address comments in PR · matplotlib/matplotlib@4f17dbd · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f17dbd

Browse files
committed
Address comments in PR
1 parent c212d86 commit 4f17dbd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/faq/howto_faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ or by saving to a file handle::
661661
fig.savefig(sys.stdout)
662662

663663
Here is an example using `Pillow <http://python-imaging.github.io/>`_.
664-
First, the figure is saved to a StringIO object which is then fed to
664+
First, the figure is saved to a BytesIO object which is then fed to
665665
Pillow for further processing::
666666

667667
from io import BytesIO
668-
import Image
668+
from PIL import Image
669669
imgdata = BytesIO()
670670
fig.savefig(imgdata, format='png')
671671
imgdata.seek(0) # rewind the data

examples/misc/svg_filter_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
ax.set_xlim(0., 1.)
5252
ax.set_ylim(0., 1.)
5353

54-
# save the figure as a string in the svg format.
54+
# save the figure as a bytes string in the svg format.
5555
from io import BytesIO
5656
f = BytesIO()
5757
plt.savefig(f, format="svg")

0 commit comments

Comments
 (0)
0