Raincloud Plot

Startup Funding by Industry Sector

Series A funding amounts across tech sectors

Output
Startup Funding by Industry Sector
Python
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import ptitprince as pt

np.random.seed(108)
BG_COLOR = '#0a0a0f'
TEXT_COLOR = 'white'
COLORS = ['#F5D327', '#5314E6', '#27D3F5', '#F5276C']

sectors = ['AI/ML', 'Fintech', 'Health Tech', 'Climate']
data = pd.DataFrame({
    'Funding': np.concatenate([
        np.random.lognormal(3.0, 0.7, 70),
        np.random.lognormal(2.8, 0.6, 85),
        np.random.lognormal(2.5, 0.8, 65),
        np.random.lognormal(2.6, 0.75, 60)
    ]),
    'Sector': ['AI/ML']*70 + ['Fintech']*85 + ['Health Tech']*65 + ['Climate']*60
})

fig, ax = plt.subplots(figsize=(10, 6), facecolor=BG_COLOR)
ax.set_facecolor(BG_COLOR)

pt.RainCloud(x='Sector', y='Funding', data=data, palette=COLORS,
             bw=.2, width_viol=.6, ax=ax, orient='h', alpha=.65,
             dodge=True, pointplot=False, move=.2)

ax.set_xlabel('Funding ($M)', fontsize=12, color=TEXT_COLOR, fontweight='500')
ax.set_ylabel('Sector', fontsize=12, color=TEXT_COLOR, fontweight='500')
ax.set_title('Series A Funding by Sector', fontsize=14, color=TEXT_COLOR, fontweight='bold', pad=15)

ax.tick_params(colors='#888', labelsize=10)
for spine in ax.spines.values():
    spine.set_color('#333')

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Statistical

Did this help you?

Support PyLucid to keep it free & growing

Support