 |
Two functions in 3D with the colorbar
Source code name: "func_3D_jogl.py"
Programming language: Python
Topic: Function/2D
DMelt Version 1.5. Last modified: 05/19/2016. License: Pro
https://datamelt.org/code/cache/func_3D_jogl_2861.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
from java.util import Random
c1=HPlotXYZ()
c1.setGTitle("Two 3D functions")
c1.setNameX("X axis")
c1.setNameX("Y axis")
c1.visible()
c1.setTickDecimalAll(2)
f1=F2D("x*sin(y)*x*y",-2,2,-2,2)
f2=F2D("x*x*cos(y)*x",-2,2,-2,2)
c1.add(f1)
c1.add(f2)
c1.setLegendBar()
c1.update()
You see the box below because you did not login.