Add a larger offset to the new record temp markers

This commit is contained in:
Randy Olson
2015-07-21 20:05:41 -04:00
parent 74a9b4b21a
commit 7962f93d5e

View File

@@ -59,11 +59,11 @@ with plt.style.context('https://gist.githubusercontent.com/rhiever/d0a7332fe0bee
# Create the dots marking record highs and lows for the year
plt.scatter(new_max_records['day_order'].values + 0.5,
new_max_records['actual_max_temp'].values + 0.75,
new_max_records['actual_max_temp'].values + 1.25,
s=15, zorder=10, color='#d62728', alpha=0.75, linewidth=0)
plt.scatter(new_min_records['day_order'].values + 0.5,
new_min_records['actual_min_temp'].values - 0.75,
new_min_records['actual_min_temp'].values - 1.25,
s=15, zorder=10, color='#1f77b4', alpha=0.75, linewidth=0)
plt.ylim(-15, 111)
@@ -103,4 +103,4 @@ with plt.style.context('https://gist.githubusercontent.com/rhiever/d0a7332fe0bee
plt.title('Philadelphia, PA\'s weather, July 2014 - June 2015\n\n', fontsize=20)
plt.savefig('philadelphia-weather-july14-june15.png')
plt.savefig('philadelphia-weather-july14-june15.png')