Skip to content

Commit

Permalink
add label offset
Browse files Browse the repository at this point in the history
  • Loading branch information
harripj committed May 1, 2023
1 parent 262dfe2 commit 2f9640a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/tutorials/crystal_directions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,9 @@
"# Get an array with one color per family of vectors\n",
"colors = np.array([f\"C{i}\" for i in range(m8.size)])[idx]\n",
"\n",
"m9.scatter(c=colors, vector_labels=labels)"
"m9.scatter(\n",
" c=colors, vector_labels=labels, text_kwargs=dict(offset=(0, 0.02))\n",
")"
]
},
{
Expand Down

0 comments on commit 2f9640a

Please sign in to comment.