[Kst] branches/work/kst/portto4/kst/pyKst
Barth Netterfield
netterfield at astro.utoronto.ca
Sun Nov 18 06:43:20 UTC 2012
SVN commit 1325483 by netterfield:
Fix some regressions in python scripting.
M +2 -3 pykst.py
--- branches/work/kst/portto4/kst/pyKst/pykst.py #1325482:1325483
@@ -174,7 +174,6 @@
color="white"
s=-2
-
NewCurve(self,x.handle,y.handle,"<None>","<None>","<None>","<None>",False,False,color,curvelinetype,curveweight,uselines,usepoints,pointtype,pointdensity,usehead,headtype,color,usebargraph,bargraphfill,ignoreinauto,donotplaceinanyplot,placeinexistingplot,placeinnewplot)
plot=ExistingPlot.getList(self)[-1] #i.e., last
makecurve=False
@@ -190,7 +189,7 @@
x=arg
break
elif isinstance(arg,Matrix):
- ColorImage(self,arg.handle,0,0,0,0,0,True,0,False,False if not isinstance(plot,Plot) else plot.handle,True if not isinstance(plot,Plot) else False)
+ ColorImage(self,arg.handle,0,0,0,0,0,True,0,False," " if not isinstance(plot,Plot) else plot.handle,True if not isinstance(plot,Plot) else False)
plot=ExistingPlot.getList(self)[-1] #i.e., last
s=-1
break
@@ -222,7 +221,7 @@
bargraphfill="black"
ignoreinauto=False
donotplaceinanyplot=False
- placeinexistingplot=False if not isinstance(plot,Plot) else plot.handle
+ placeinexistingplot=" " if not isinstance(plot,Plot) else plot.handle
placeinnewplot=True if not isinstance(plot,Plot) else False
#no args after this
makecurve=True
More information about the Kst
mailing list