Skip to content

Commit 31fd1fc

Browse files
committed
ok seems to have ticks here again and prettyfied text for them
1 parent 7052e68 commit 31fd1fc

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

Packages/vcs/Lib/Canvas.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3482,6 +3482,8 @@ def set_convert_labels(copy_mthd,test=0):
34823482
elif tp=="default":
34833483
tp="boxfill"
34843484
gm=vcs.elements[tp][arglist[4]]
3485+
if hasattr(gm,"priority") and gm.priority==0:
3486+
return
34853487
p=self.getprojection(gm.projection)
34863488
if p.type in round_projections and (doratio=="0" or doratio[:4]=="auto"):
34873489
doratio="1t"
@@ -3532,7 +3534,7 @@ def set_convert_labels(copy_mthd,test=0):
35323534
t.data.y2 = p.viewport[3]
35333535

35343536
proj = self.getprojection(p.projection)
3535-
if proj.type in round_projections:
3537+
if proj.type in round_projections and (doratio=="0" or doratio[:4]=="auto"):
35363538
doratio="1t"
35373539

35383540
if proj.type=='linear' and doratio[:4]=='auto':

Packages/vcs/Lib/template.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -962,11 +962,12 @@ def drawTicks(self,slab,gm,x,axis,number,vp,wc,bg=0,X=None,Y=None,**kargs):
962962
if vcs.elements["projection"][tt.projection].type in round_projections:
963963
xmn,xmx=vcs.minmax(self.data.x1,self.data.x2)
964964
ymn,ymx=vcs.minmax(self.data.y1,self.data.y2)
965-
widen = .02
966-
xmn -= widen
967-
xmx += widen
968-
ymn -= widen
969-
ymx += widen
965+
xwiden = .02
966+
ywiden = .02
967+
xmn -= xwiden
968+
xmx += xwiden
969+
ymn -= ywiden
970+
ymx += ywiden
970971
vp = [max(0.,xmn),min(xmx,1.),max(0,ymn),min(ymx,1.)]
971972
tt.viewport=vp
972973
pass
@@ -1054,7 +1055,7 @@ def drawTicks(self,slab,gm,x,axis,number,vp,wc,bg=0,X=None,Y=None,**kargs):
10541055
tt.string=tstring
10551056
tt.x=txs
10561057
tt.y=tys
1057-
displays.append(x.text(tt,bg=bg,**kargs))
1058+
displays.append(x.text(tt,bg=bg,ratio="none",**kargs))
10581059
if xs!=[]:
10591060
ticks._x=xs
10601061
ticks._y=ys

0 commit comments

Comments
 (0)