python_codes.plot_functions.plot_arrow#

plot_arrow(ax, start, end, arrowprops)[source]#

Plot an arrow using matplotlib FancyArrowPatch. Note that it can plot dashed arrows without having an ugly head depending on type argument, following https://stackoverflow.com/questions/47180328/pyplot-dotted-line-with-fancyarrowpatch.

Parameters
  • ax (matplotlib axe) – Axe on which to plot the arrow

  • start (tuple, list, numpy array) – starting coordinates of the arrow

  • end (tuple, list, numpy array) – starting coordinates of the arrow

  • arrowprops (dict) – arrowprops dictionnary passed to matplotlib FancyArrowPatch.

Return type

Return nothing, only plot the arrow

Examples using python_codes.plot_functions.plot_arrow#