 |
Plot two F2D functions in 3D on a single HPlot3D canvas
Source code name: "func_3D_2.py"
Programming language: Python
Topic: Function/2D
DMelt Version 1. Last modified: 12/11/2015. License: Pro
https://datamelt.org/code/cache/func_3D_2_1182.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 HPlot3D,F2D
c1 = HPlot3D("Canvas",600,400)
c1.visible()
c1.setNameX("X")
c1.setNameY("Y")
c1.setRange(1,10,1,10,0,20)
f1 = F2D("2*exp(-x*y/20)+10*sin(pi*x)")
c1.draw(f1)
f2 = F2D("x*y*cos(x)",1,10,1,10)
c1.draw(f2)
# export to some image (png,eps,pdf,jpeg...)
# c1.export(Editor.DocMasterName()+".png");
You see the box below because you did not login.