matplotlib / AnatomyOfMatplotlib

Anatomy of Matplotlib -- tutorial developed for the SciPy conference
Other
1.22k stars 598 forks source link

Updated the categorical example #23

Closed story645 closed 6 years ago

story645 commented 6 years ago

switched code in example to:

data = [('apples', 2), ('oranges', 3), ('peaches', 1)]
fruit, value = zip(*data)

fig, ax = plt.subplots()
ax.bar(fruit, value, align='center', color='gray')
plt.show()
WeatherGod commented 6 years ago

there is a bunch of extra stuff in this diff

WeatherGod commented 6 years ago

I'll just include the relevant portions of the change in my #22

story645 commented 6 years ago

K, and yeah I wonder if it's 'cause I'm using python 3 and cleared out the output before the PR

WeatherGod commented 6 years ago

maybe, but you also executed a load magic, which is what I referenced

story645 commented 6 years ago

hmm, wondering why that is since I cleared all the output...

story645 commented 6 years ago

I think it's cause of a code folding plugin (or one of the many other jupyter extensions I've got installed). :/ Next time will grab a clean environment.

WeatherGod commented 6 years ago

load magic execution aren't considered "output", since it replaces the cell that it came from

On Tue, Jul 10, 2018 at 1:01 AM, hannah notifications@github.com wrote:

I think it's cause of a code folding plugin (or one of the many other jupyter extensions I've got installed). :/ Next time will grab a clean environment.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/matplotlib/AnatomyOfMatplotlib/pull/23#issuecomment-403701087, or mute the thread https://github.com/notifications/unsubscribe-auth/AARy-B2UlErWZjZHzXjLIh21C8J5_zGwks5uFDU_gaJpZM4VIsfs .