Commit ecf91fb6 authored by Michele Maris's avatar Michele Maris
Browse files

u

parent 0b56b646
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -110,7 +110,7 @@ def ocirc(x,y,color=['white','black'],markersize=[30],scale=1.,zorder=None,mew=[
      #b[0].set_zorder(zorder+1)
      #b[0].set_zorder(zorder+1)
   return a
   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
   """ Converts a curve in a patch
         x,y = vectors with x and y
         x,y = vectors with x and y
   """
   """
@@ -128,6 +128,7 @@ def curveXY2patch(x,y,returnVectors=False,closed=True,draw=True, ax=None,color=N
           return ax.add_collection(PatchCollection([pol]))
           return ax.add_collection(PatchCollection([pol]))
       else:
       else:
           return plt.gca().add_collection(PatchCollection([pol]))
           return plt.gca().add_collection(PatchCollection([pol]))
   return pol


def curves2xy(Cup,Cdown,closed=True) :
def curves2xy(Cup,Cdown,closed=True) :
   """  converts an up curve and a down curve into a list of points to generate a partch
   """  converts an up curve and a down curve into a list of points to generate a partch