 |
Create 3D animated canvases with function + data
Source code name: "func3D_data_jogl.py"
Programming language: Python
Topic: Plots/3D
DMelt Version 1.5. Last modified: 05/18/2016. License: Pro
https://datamelt.org/code/cache/func3D_data_jogl_842.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 jhplot import *
from java.awt import Color
c1=HPlotXYZ("test",600,400,2,1);
c1.visible()
h1=P2D()
h1.add(10,10,20)
h1.add(20,20,50)
h1.add(15,12,7)
c1.add(h1,10,Color.red)
c1.setAxisPenWidth(1)
c1.animate()
c1.update()
c1.cd(2,1)
f1=F2D("x*x+y*y",-1,1,-1,1)
c1.setAxisPenWidth(3)
c1.setTickDecimalAll(1)
c1.add(f1)
c1.update()
You see the box below because you did not login.