Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 993c028

Browse files
committed
Merge branch 'master' of github.com:matplotlib/matplotlib
2 parents bca1fb0 + e0cf45e commit 993c028

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/api/fahrenheit_celcius_scales.py renamed to examples/api/fahrenheit_celsius_scales.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
2-
Shoiw how to display two scales on the left and right y axis -- Fahrenheit and Celcius
2+
Show how to display two scales on the left and right y axis -- Fahrenheit and Celsius
33
"""
44

55
import matplotlib.pyplot as plt
66

77
fig = plt.figure()
88
ax1 = fig.add_subplot(111) # the Fahrenheit scale
9-
ax2 = ax1.twinx() # the Celcius scale
9+
ax2 = ax1.twinx() # the Celsius scale
1010

1111
def Tc(Tf):
1212
return (5./9.)*(Tf-32)
@@ -21,8 +21,8 @@ def update_ax2(ax1):
2121
ax1.callbacks.connect("ylim_changed", update_ax2)
2222
ax1.plot([78, 79, 79, 77])
2323

24-
ax1.set_title('Two scales: Fahrenheit and Celcius')
24+
ax1.set_title('Two scales: Fahrenheit and Celsius')
2525
ax1.set_ylabel('Fahrenheit')
26-
ax2.set_ylabel('Celcius')
26+
ax2.set_ylabel('Celsius')
2727

2828
plt.show()

0 commit comments

Comments
 (0)