8000 Minor example updates by QuLogic · Pull Request #7559 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Minor example updates #7559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 17, 2016
Prev Previous commit
Next Next commit
Add plt.show to some examples.
  • Loading branch information
QuLogic committed Dec 11, 2016
commit 9c8b7e68eafed1f9b17f9beaf3ba93bfff340bdc
1 change: 1 addition & 0 deletions examples/pylab_examples/barchart_demo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,4 @@ def plot_student_results(student, scores, cohort_size):
cohort_size = 62 # The number of other 2nd grade boys

arts = plot_student_results(student, scores, cohort_size)
plt.show()
2 changes: 1 addition & 1 deletion examples/pyplots/dollar_ticks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
tick.label2On = True
tick.label2.set_color('green')


plt.show()
3 changes: 1 addition & 2 deletions examples/pyplots/fig_axes_customize_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@
line.set_markersize(25)
line.set_markeredgewidth(3)



plt.show()
2 changes: 1 addition & 1 deletion examples/pyplots/fig_axes_labels_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
facecolor='yellow', edgecolor='yellow')
ax2.set_xlabel('time (s)')


plt.show()
4 changes: 3 additions & 1 deletion examples/pyplots/fig_x.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.lines as lines


fig = plt.figure()

l1 = lines.Line2D([0, 1], [0, 1], transform=fig.transFigure, figure=fig)
Expand All @@ -9,4 +11,4 @@

fig.lines.extend([l1, l2])


plt.show()
3 changes: 1 addition & 2 deletions examples/pyplots/whats_new_99_spines.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.pyplot import show


def adjust_spines(ax,spines):
Expand Down Expand Up @@ -44,4 +43,4 @@ def adjust_spines(ax,spines):
ax.plot(x,y)
adjust_spines(ax,['bottom'])

show()
plt.show()
3 changes: 0 additions & 3 deletions lib/matplotlib/tests/test_coding_standards.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,10 @@ def test_pep8_conformance_examples():
'*/pyplots/tex_demo.py',
'*/pyplots/compound_path_demo.py',
'*/pyplots/text_commands.py',
'*/pyplots/dollar_ticks.py',
'*/pyplots/text_layout.py',
'*/pyplots/fig_axes_customize_simple.py',
'*/pyplots/whats_new_1_subplot3d.py',
'*/pyplots/fig_axes_labels_simple.py',
'*/pyplots/whats_new_98_4_fancy.py',
'*/pyplots/fig_x.py',
'*/pyplots/whats_new_98_4_fill_between.py',
'*/pyplots/whats_new_98_4_legend.py',
'*/pyplots/pyplot_annotate.py',
Expand Down
0