<jupyter_start><jupyter_text>Surface`k3d.surface` is an easy way to produce plot of an explicit function of two variables $f(x,y)$ on a rectangular domain.It takes a table of values, i.e. `f(x_i,y_i) = f[j,i]`. Proper scaling of $x$ and $y$ axes can by done by specifying `xmin/xmax` parameters.<jupyter_code>import numpy as np
import k3d

plot = k3d.plot()

Nx, Ny = 50, 60
xmin, xmax, ymin, ymax = -3, 3, 0, 3
x = np.linspace(xmin, xmax, Nx, dtype=np.float32)
y = np.linspace(ymin, ymax, Ny, dtype=np.float32)
x, y = np.meshgrid(x, y)
f = np.sin(x**2 + y**2)
plt_surface = k3d.surface(f, xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax)
plot += plt_surface

plot.display()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15021459227467812, 'fraction_numerical': 0.02575107296137339, 'mean_word_length': 4.932203389830509, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '569568', 'license': 'MIT', 'n_tokens_mistral': 313, 'n_tokens_neox': 302, 'n_words': 87, 'path': 'docs/source/basic_functionality/Surface.ipynb', 'repo_name': 'aot-devs/K3D-jupyter', 'size': '699'}