You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs for both the "Fancy" and "CurveB" (I didn't test others).
The error occurs in MatPlotLib 1.1.0, backend: WXagg, Python 2.7.3 and in MatPlotLib 1.2.0, backend: MacOSX, Python 3.3.0.
The error occurs with and without IPython.
I use Mac OS X 10.8.2.
importmatplotlibimportmatplotlib.pyplotaspltfig=plt.figure()
ax=fig.add_subplot(111)
# ArrowStyle# does not workast=matplotlib.patches.ArrowStyle.Fancy()
# does not work#ast = matplotlib.patches.ArrowStyle("Fancy")# does work#ast = "Fancy"# ConnectionStyle, two methods, both work#cs = matplotlib.patches.ConnectionStyle("arc3", rad = 0.3)cs="arc3, rad = 0.3"arrow=matplotlib.patches.FancyArrowPatch(
posA= [0.25, 0.25],
posB= [0.75, 0.75],
connectionstyle=cs,
arrowstyle=ast
)
ax.add_patch(arrow)
plt.show()
This is the traceback, for MatPlotLib 1.2.0/Python 3.3:
I want to set the arrowstyle in "matplotlib.patches.FancyArrowPatch()". According to the documentation I can set it using a ArrowStyle instance or a string. (http://matplotlib.org/api/artist_api.html#matplotlib.patches.FancyArrowPatch) The method with the ArrowStyle instance gives the following error:
Code and full traceback are pasted below.
The error occurs for both the "Fancy" and "CurveB" (I didn't test others).
The error occurs in MatPlotLib 1.1.0, backend: WXagg, Python 2.7.3 and in MatPlotLib 1.2.0, backend: MacOSX, Python 3.3.0.
The error occurs with and without IPython.
I use Mac OS X 10.8.2.
This is the traceback, for MatPlotLib 1.2.0/Python 3.3:
The text was updated successfully, but these errors were encountered: