@@ -230,7 +230,7 @@ def __init__( self, pvars, presentation, labels=[], title='', source='', ranges=
230230 self .presentation = vcsx .createisoline ()
231231 elif presentation == "Scatter" :
232232 self .presentation = vcsx .createscatter ()
233- elif presentation == "Taylor " :
233+ elif presentation == "Taylordiagram " :
234234 self .presentation = vcsx .createtaylordiagram ()
235235 else :
236236 print "ERROR, uvc_plotspec doesn't recognize presentation" ,presentation
@@ -579,28 +579,6 @@ def finalize( self, flip_x=False, flip_y=False ):
579579 #print markersizes
580580 #print self.vars
581581
582- #setup the markersize and colors
583- MAX = max (markersizes )
584- MIN = min (markersizes )
585- scale = vcs .mkscale (MIN , MAX )
586- #labels = vcs.mklabels(scale)
587- colorScale = vcs .getcolors (scale , split = False )
588- sizes = range (10 , 10 + len (colorScale ))
589-
590- dotsizes = []
591- dotcolors = []
592-
593- #determine dot size and color
594- for size in markersizes :
595- for index in range (0 , len (scale )- 1 ):
596- low , high = scale [index ], scale [index + 1 ]
597- if low <= size and size < high :
598- dotsizes += [sizes [index ]]
599- dotcolors += [colorScale [index ]]
600- #print dotsizes
601- #print dotcolors
602- break
603-
604582 #determine the identifier for the legend
605583 IDs = []
606584 for ID in markerids :
@@ -614,13 +592,10 @@ def finalize( self, flip_x=False, flip_y=False ):
614592 #out to the plot
615593 self .legendTitles = IDs
616594
617- index = []
618- for i in range (len (markersizes )):
619- index += [str (i )]
620- self .presentation .Marker .size = dotsizes
621- self .presentation .Marker .color = dotcolors
595+ #self.presentation.Marker.size = dotsizes
596+ #self.presentation.Marker.color = dotcolors
622597 #self.presentation.IDs = IDs
623- self .presentation .Marker .id = index
598+ # self.presentation.Marker.id = index
624599 #pdb.set_trace()
625600
626601 #create list of offsets
@@ -632,9 +607,31 @@ def finalize( self, flip_x=False, flip_y=False ):
632607 else :
633608 XOFF = XOFF .tolist ()
634609 YOFF = YOFF .tolist ()
635- self .presentation .Marker .xoffset = XOFF
636- self .presentation .Marker .yoffset = YOFF
637- self .presentation .Marker .id_size = len (markersizes )* [20 ]
610+ #self.presentation.Marker.xoffset = XOFF
611+ #self.presentation.Marker.yoffset = YOFF
612+ #self.presentation.Marker.id_size = len(markersizes)*[20]
613+ for i in range (len (markersizes )):
614+ if markersizes [i ]> 1.01 :
615+ mtype = "triangle_up"
616+ elif markersizes [i ]< .99 :
617+ mtype = "triangle_down"
618+ else :
619+ mtype = "circle"
620+ b = abs (1. - markersizes [i ])
621+ if b < 5 :
622+ size = 12
623+ elif b < 10 :
624+ size = 16
625+ elif b < 20 :
626+ size = 20
627+ else :
628+ size = 25
629+
630+ self .presentation .Marker .addMarker (size = size ,
631+ id = str (i ),id_size = 20 ,
632+ symbol = mtype ,
633+ xoffset = XOFF [i ],yoffset = YOFF [i ])
634+ self .presentation .Marker .equalize ()
638635
639636 #self.presentation.list()
640637
0 commit comments