python - Setting dash length when plotting arrow -


with matplotlib

  plot a line with custom dash style using plt Easy to do Plot ([0, 5], [0, 5], dash = (20.0, 20.0)) plt.show ()   

or

  line = Plt.plot ([0, 5], [0, 5]) line [0] .set_dashes ((20.0, 20.0)) plt.show ()   

and its possible To plot an arrow with a dashed style

  plt.arrow (0, 0, 5, 5, linestyle = 'dashed') plt.show ()   

I do not know how to plot arrows with custom dash style

  arrow = plt.arrow (0, 0, 5, 5)? Plt.show ()   

uses the dash parameter of the plot function

  attributeError: of the 'FancyArrow' object There is no attribute 'set_dashes'   

and there is no set_dashes () method of FancyArrow as mentioned in the error. Is this possible?

Currently, I think this is not possible as the arrow Class only supports 'solid'. 'Dash' | 'DashDot' | The object must contain ._dashSeq property, which is a lack of arrows to use four different linkstyle customized dash styles. That's why I can see why .set_dashes .

It is being said, although currently .set_linestyle method arrows , you are not set to anything other than the above 4 styles can do. This means that such as .set_linestyle ('-') is not possible.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -