#from org.autoplot.datasource import AutoplotSettings
#print AutoplotSettings.settings().resolveProperty(AutoplotSettings.PROP_AUTOPLOTDATA)

#LoggerManager.getLogger('das2.graphics').setLevel( Level.CONFIG )
#LoggerManager.getLogger('autoplot.script').setLevel( Level.CONFIG )

setLayout(2,2)

(p0,pe)= plot(0,'vap+inline:circle(20)',color='red')
(p1,pe)= plot(1,'vap+inline:circle(20)',color='blue')
(p2,pe)= plot(2,'vap+inline:circle(20)',color='green')
plot(3,'vap+inline:circle(20)',color='orange')

plot(5,'vap+inline:circle(15)',color='black', 
     renderType='scatter', symbolSize=9,
     ypos=p1.rowId, xpos=p1.columnId )

plot(6,'vap+inline:circle(15)',color='black', 
     renderType='scatter', symbolSize=9,
     ypos=p2, xpos=p2 )

plot(4,'vap+inline:circle(15)',color='black', 
     renderType='scatter', symbolSize=9,
     rightAxisOf= p0 )

print 'marginRow: ', dom.canvases[0].marginRow.top, dom.canvases[0].marginRow.bottom
for r in dom.canvases[0].rows:
    print '%s: %s %s' %( r.id, r.top, r.bottom )

writeToPng( 'test051_plotCommand2017a6.png' )