X-Y-Z data in 3D (P2D) using HPlot3D
Code: "canvas3D_2pads.py". Programming language: Python
DMelt Version 1. Last modified: 05/09/2015. License: Free
https://datamelt.org/code/cache/canvas3D_2pads_4740.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
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)