Skip to content

Commit

Permalink
Further tweaks - @danlipsa, @doutriaux1, CDAT/vcs#237
Browse files Browse the repository at this point in the history
  • Loading branch information
durack1 committed Aug 28, 2017
1 parent 3ee05df commit dc68bb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions make_newVsOldDiffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
PJD 28 Jun 2016 - Corrected pngs path for mp4s
PJD 30 Jun 2016 - Added donotstoredisplay argument
PJD 22 Aug 2017 - Added code tweaks following VCS changes #235
PJD 28 Aug 2017 - Further tweaks following info in https://github.com/UV-CDAT/vcs/pull/237#issuecomment-325354235
@author: durack1
"""
Expand Down Expand Up @@ -62,6 +63,7 @@ def initVCS(x,levs1,levs2,split):
tmpl.blank()
tmpl.scalefont(.9)

oldOrientation = tmpl.legend.textorientation
tmpl.legend.textorientation = leg
for a in ["data","legend","box1","xlabel1","xtic1","ylabel1","ytic1"]:
setattr(getattr(tmpl,a),"priority",1)
Expand All @@ -84,6 +86,7 @@ def initVCS(x,levs1,levs2,split):
t3 = Ez.get(legend="local")

del(Ez) ; # Purge EzTemplate object
vcs.removeobject(vcs.elements['textorientation'][oldOrientation])

return iso1,iso2,title,t1,t2,t3,tmpl

Expand Down Expand Up @@ -200,11 +203,11 @@ def initVCS(x,levs1,levs2,split):
#print 'new:',varNameNewRead.ljust(9),s1s.getTime().asComponentTime()
#print 'old:',varNameRead.ljust(9),s2.getTime().asComponentTime()
s2 = f2(varNameRead,slice(m,m+1))
diff = s2-s1
diff = s2-s1s
iso1,iso2,title,t1,t2,t3,tmpl = initVCS(x,levs1,levs2,split)
title.string = '%i-%.2i' % (y,m+1)
x.plot(title,bg=bg)
x.plot(s1,t1,iso1,bg=bg); #,ratio="autot"); #,vtk_backend_grid=g)
x.plot(s1s,t1,iso1,bg=bg); #,ratio="autot"); #,vtk_backend_grid=g)
x.plot(diff,t2,iso2,bg=bg); #,ratio="autot") ; #,vtk_backend_grid=g)
x.plot(s2,t3,iso1,bg=bg); #,ratio="autot") ; #,vtk_backend_grid=g)
fnm = '%i-%.2i.png' % (y,m+1)
Expand Down

0 comments on commit dc68bb3

Please sign in to comment.