Skip to content

Commit 1656f19

Browse files
author
Jeff Whitaker
committed
fix sys.stdout.write (add line feeds)
1 parent 089e2e9 commit 1656f19

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/nytolondon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
meridians = np.arange(-180,180,30)
3333
m.drawmeridians(meridians,labels=[1,1,0,1])
3434
plt.title('Great Circle from New York to London (Mercator)')
35-
sys.stdout.write('plotting Great Circle from New York to London (Mercator)')
35+
sys.stdout.write('plotting Great Circle from New York to London (Mercator)\n')
3636

3737
# create new figure
3838
fig=plt.figure()
@@ -61,5 +61,5 @@
6161
meridians = np.arange(-180,180,30)
6262
m.drawmeridians(meridians,labels=[1,1,0,1])
6363
plt.title('Great Circle from New York to London (Gnomonic)')
64-
sys.stdout.write('plotting Great Circle from New York to London (Gnomonic)')
64+
sys.stdout.write('plotting Great Circle from New York to London (Gnomonic)\n')
6565
plt.show()

examples/plot_tissot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
m.drawmapboundary(fill_color='aqua')
5050
m.fillcontinents(color='coral',lake_color='aqua')
5151
title = 'Tissot Diagram: projection = %s' % m.projection
52-
sys.stdout.write(title)
52+
sys.stdout.write(title+'\n')
5353
plt.title(title)
5454

5555
plt.show()

examples/plotmap_oo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@
6767
# save image (width 800 pixels with dpi=100 and fig width 8 inches).
6868
canvas.print_figure('plotmap',dpi=100)
6969
# done.
70-
sys.stdout.write('image saved in plotmap.png')
70+
sys.stdout.write('image saved in plotmap.png\n')

examples/save_background.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
# save figure 2.
3737
fig2.savefig('figure2.png', dpi=100)
3838

39-
sys.stdout.write('images saved in figure1.png and figure2.png')
39+
sys.stdout.write('images saved in figure1.png and figure2.png\n')

0 commit comments

Comments
 (0)