Skip to content

Commit

Permalink
Fix y-axis position of overlapping exporter label
Browse files Browse the repository at this point in the history
  • Loading branch information
euronion committed Nov 4, 2022
1 parent 124912c commit 7df3b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/plotting/cost-compositions_selected_ESCs.py.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"width = ax.patches[0].get_width()\n",
"for x in ax.get_xticks():\n",
" for i, exp in enumerate(selected_exps):\n",
" ax.text(x + width * (i - 1.5), -20, exp, size=\"small\")\n",
" ax.text(x + width * (i - 1.5), 0, \"\\n\\n\"+exp, size=\"small\", va=\"center\")\n",
"\n",
"ax.set_xticklabels(\n",
" [\n",
Expand Down Expand Up @@ -287,7 +287,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.5"
"version": "3.10.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 7df3b75

Please sign in to comment.