Untitled

 avatar
unknown
plain_text
a year ago
927 B
4
Indexable
import matplotlib.pyplot as plt

# Data
categories = ['Travel Industry', 'Clothing Rental Market']
current_market_size = [1000, 1.56]  # in billion USD
projected_market_size = [1100, 2.08]  # in billion USD

# Create figure and axis
fig, ax = plt.subplots()

# Create bar chart
bar_width = 0.4
bar_positions = range(len(categories))

# Plot current and projected market sizes
ax.bar(bar_positions, current_market_size, bar_width, label='Current Market Size', color='skyblue')
ax.bar([p + bar_width for p in bar_positions], projected_market_size, bar_width, label='Projected Market Size (2025)', color='orange')

# Add labels, title, and legend
ax.set_xlabel('Industries')
ax.set_ylabel('Market Size (in billion USD)')
ax.set_title('Current and Projected Market Sizes')
ax.set_xticks([p + bar_width / 2 for p in bar_positions])
ax.set_xticklabels(categories)
ax.legend()

# Display plot
plt.show()

Editor is loading...
Leave a Comment