raw numbers dataviz need y axis
This commit is contained in:
parent
36d943f147
commit
c14e14b25f
1 changed files with 7 additions and 7 deletions
|
|
@ -154,12 +154,12 @@
|
|||
" selected.Venezuela\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"# minimalistic x axis with fancy labels\n",
|
||||
"plt.xticks(np.arange(1900, 2023, 10))\n",
|
||||
"ax.get_yaxis().set_ticks([])\n",
|
||||
"# Raw numbers need a Y axis scale and lines\n",
|
||||
"plt.xticks(np.arange(1900, 2021, 10))\n",
|
||||
"plt.yticks(np.arange(1000, 6000, 1000))\n",
|
||||
"ax.tick_params(length=4, color=\"white\")\n",
|
||||
"ax.tick_params(rotation=35)\n",
|
||||
"plt.xticks(ha='left')\n",
|
||||
"ax.grid(axis=\"y\")\n",
|
||||
"\n",
|
||||
"# no border, clean layout, no non-sense\n",
|
||||
"ax.spines['top'].set_visible(False)\n",
|
||||
|
|
@ -227,12 +227,12 @@
|
|||
" raffinage.Venezuela\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"# same minimalist look, update timespan\n",
|
||||
"# Raw numbers need a Y axis scale and lines\n",
|
||||
"plt.xticks(np.arange(1940, 2023, 10))\n",
|
||||
"ax.get_yaxis().set_ticks([])\n",
|
||||
"plt.yticks(np.arange(1000, 7000, 1000))\n",
|
||||
"ax.tick_params(length=4, color=\"white\")\n",
|
||||
"ax.tick_params(rotation=35)\n",
|
||||
"plt.xticks(ha='left')\n",
|
||||
"ax.grid(axis=\"y\")\n",
|
||||
"\n",
|
||||
"# same minimalist look\n",
|
||||
"ax.spines['top'].set_visible(False)\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue