Loading src/yapsut/graphics.py +2 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ def ocirc(x,y,color=['white','black'],markersize=[30],scale=1.,zorder=None,mew=[ #b[0].set_zorder(zorder+1) return a def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=None) : def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=None,zorder=None) : """ Converts a curve in a patch x,y = vectors with x and y """ Loading @@ -128,6 +128,7 @@ def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=N return ax.add_collection(PatchCollection([pol])) else: return plt.gca().add_collection(PatchCollection([pol])) return pol def curves2xy(Cup,Cdown,closed=True) : """ converts an up curve and a down curve into a list of points to generate a partch Loading Loading
src/yapsut/graphics.py +2 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ def ocirc(x,y,color=['white','black'],markersize=[30],scale=1.,zorder=None,mew=[ #b[0].set_zorder(zorder+1) return a def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=None) : def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=None,zorder=None) : """ Converts a curve in a patch x,y = vectors with x and y """ Loading @@ -128,6 +128,7 @@ def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=N return ax.add_collection(PatchCollection([pol])) else: return plt.gca().add_collection(PatchCollection([pol])) return pol def curves2xy(Cup,Cdown,closed=True) : """ converts an up curve and a down curve into a list of points to generate a partch Loading