Not new, but new to me, the Hatnote Listen to Wikipedia page visualizes edits to Wikipedia while playing a sound for each (lower pitched sounds for bigger edits).
Another Pickwick Discard
This visualization was the first draft of the last chart in this post. I added extra spacing between the bars to provide space for annotations; eventually I decided this was unnecessary.

#y-positions for the next graph. Add empty spaces (label='' and width=0) under each bar.
ypos = np.arange(chapterdata.shape[0]*2 - 1, 0, -1)
widths = list(itertools.chain.from_iterable((x, 0) for x in chapterdata['new_vocabulary']))[:-1]
labels = list(itertools.chain.from_iterable((str(x), '') for x in chapterdata.index))[:-1]
#Don't need extra room after the first two chapters.
ypos = np.delete(ypos, (0,1))
del(widths[1])
del(widths[2])
del(labels[1])
del(labels[2])
MOST_COMMON_COUNT = 5
fig, ax = plt.subplots(figsize=(14, 40))
#plt.barh('new_vocabulary', chapterdata.index, data=chapterdata,orient='h', color=mycolor)
ax.barh(ypos, widths, .8, tick_label=labels, color=mycolor)
plt.ylim([0, ypos.max()+1])
plt.grid(axis='x')
xax = ax.get_xaxis()
xax.set_label_position('top')
plt.xlabel("Count of New Vocabulary")
ax.xaxis.tick_top()
for chapnum in range(1, 58):
chaplbl = str(chapnum)
#print(str(widths[labels.index(chaplbl)]))
plt.text(10, ypos[labels.index(chaplbl)], str(widths[labels.index(chaplbl)]),\
weight='bold', color='white', verticalalignment='center')
if chapnum >= 3:
newwords = ', '.join(['"%s" (%d)'%word for word in newvocab[chapnum].most_common(MOST_COMMON_COUNT)])
#print(newwords)
plt.text(10, ypos[labels.index(chaplbl)]-1.1, 'Major new vocabulary:', weight='bold',\
bbox=dict(facecolor='#ffffff99'))
plt.text(500, ypos[labels.index(chaplbl)]-1.1, newwords,\
bbox=dict(facecolor='#ffffff99'))
plt.show()
1
About Me
Developer at Brown University Library specializing in instructional design and technology, Python-based data science, and XML-driven web development.
Tags
- #100daystooffload (7)
- Gemini (1)
- PowerShell (1)
- adtech (3)
- advertising (3)
- advertising_industry (3)
- aerospace (1)
- agriculture (5)
- airlines (1)
- american_football (1)
- animals (4)
- art (6)
- artificial_intelligence (18)
- augmented_reality (1)
- automotive (2)
- aviation_ (3)
- beverage_industry (1)
- big_data (2)
- biopharma_industry (20)
- blockchain (3)
- books (2)
- business (27)
- cannabis (3)
- chemistry (11)
- cinema (6)
- climate (12)
- cloud_computing (1)
- code (0)
- commodities (1)
- consumer_insights (7)
- crime (11)
- cryptarithms (1)
- crypto (1)
- cryptography (4)
- cxo_mentions (1)
- cyber_fraud (1)
- cyber_security (4)
- cycling (1)
- data_breach (1)
- data_science (18)
- deep_learning (6)
- devops (1)
- digital_transformation (1)
- diversity (16)
- diversity_inclusion (1)
- ecommerce (3)
- economy (28)
- education (57)
- electronics (6)
- energy (4)
- energy_industry (2)
- entertainment (1)
- entrepreneurship (1)
- executive_mentions (3)
- finance (2)
- finance_industry (3)
- fintech (2)
- foreign_policy (22)
- future_of_work (1)
- games (11)
- gaming_industry (1)
- gardening (2)
- geography (1)
- geopolitics (9)
- global_health (7)
- gopher (1)
- government_oppression (1)
- guns (3)
- hacking (5)
- health (11)
- healthcare_it (3)
- immigration (2)
- insurance (7)
- insurtech (1)
- interviews (1)
- investing (12)
- law (18)
- legal_industry (2)
- legal_tech (4)
- libraries (2)
- lifestyle (2)
- links (91)
- listicles (2)
- machine_learning (7)
- maps (1)
- market_reports (1)
- market_research (1)
- mathematics (3)
- media_entertainment_industry (4)
- medical_devices_industry (2)
- military (11)
- minizinc (2)
- mobile_security (1)
- music (3)
- natural_language_processing (1)
- navy (3)
- neuroscience (13)
- nlp (4)
- parenting (4)
- personal_finance (4)
- pharma (15)
- political_science (37)
- politics (34)
- privacy (1)
- product_review (1)
- programming (4)
- python (8)
- quotes (1)
- real_estate (5)
- real_estate_industry (1)
- reality (1)
- recreational_drugs (3)
- retail (4)
- retail_industry (2)
- robotics (1)
- semiconductor (1)
- sleep (1)
- smart_cities (1)
- soccer (2)
- space (2)
- sport (1)
- stocks (3)
- supply_chain (1)
- supply_chain_industry (1)
- sustainability (2)
- sustainable_development (3)
- systems (4)
- tech (26)
- tech_scientific_innovation (1)
- technology (1)
- telecom_industry (1)
- video_games (3)
- visualization (2)
- weather (5)