Skip to content

Commit

Permalink
Update jdh_statistics.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
memerchik committed Sep 11, 2024
1 parent e9ebf14 commit 5847fe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jdh_statistics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@
"status_counts = df['status'].value_counts()\n",
"\n",
"# Plot a pie chart\n",
"colors = cm.inferno_r(np.linspace(.4, .8, 4))\n",
"plt.figure(figsize=(8, 8)) # Set the figure size\n",
"plt.pie(status_counts, labels=status_counts.index, autopct='%1.1f%%', startangle=140)\n",
"plt.pie(status_counts, labels=status_counts.index, autopct='%1.1f%%', startangle=140, colors=colors)\n",
"plt.title('Article Status Distribution')\n",
"plt.show()"
]
Expand Down

0 comments on commit 5847fe8

Please sign in to comment.