from java.awt import Color
from jhplot import HPlot3D,P2D
d1 = P2D("data1")
d2 = P2D("data2")
d3 = P2D("data3")
d1.setSymbolColor(Color.red)
d2.setSymbolColor(Color.blue)
d3.setSymbolSize(2)
for i in range(0,10):
for j in range(0,10):
d1.add(i,j,0.5)
d2.add(i,j,0.6)
for i in range(0,50):
for j in range(0,50):
d3.add(0.2*i,0.2*j,0.9)
c1 = HPlot3D("plot",600,700,1,2);
c1.setRange(0.0,10,0.0,10,0,2)
c1.visible()
c1.cd(1,1)
c1.draw(d1)
c1.draw(d2)
c1.cd(1,2)
c1.setRange(0.0,10,0.0,10,0.2,1.0)
c1.draw(d1)
c1.draw(d2)
c1.draw(d3)