diff --git a/examples/statistics/barchart_demo.py b/examples/statistics/barchart_demo.py index f4798cb428e8..8225bda88d8b 100644 --- a/examples/statistics/barchart_demo.py +++ b/examples/statistics/barchart_demo.py @@ -28,9 +28,9 @@ fig, ax = plt.subplots() rects1 = ax.bar(ind - width/2, men_means, width, yerr=men_std, - color='SkyBlue', label='Men') + color='skyblue', label='Men') rects2 = ax.bar(ind + width/2, women_means, width, yerr=women_std, - color='IndianRed', label='Women') + color='indianred', label='Women') # Add some text for labels, title and custom x-axis tick labels, etc. ax.set_ylabel('Scores') diff --git a/examples/ticks_and_spines/tick-locators.py b/examples/ticks_and_spines/tick-locators.py index 072d5e9ec9ce..7586739558a7 100644 --- a/examples/ticks_and_spines/tick-locators.py +++ b/examples/ticks_and_spines/tick-locators.py @@ -66,7 +66,7 @@ def setup(ax): # Index Locator ax = plt.subplot(n, 1, 5) setup(ax) -ax.plot(range(0, 5), [0]*5, color='White') +ax.plot(range(0, 5), [0]*5, color='white') ax.xaxis.set_major_locator(ticker.IndexLocator(base=.5, offset=.25)) ax.text(0.0, 0.1, "IndexLocator(base=0.5, offset=0.25)", fontsize=14, transform=ax.transAxes)