Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Three-dimensional Contour Plots

def f(x, y):
    return np.sin(np.sqrt(x ** 2 + y ** 2))

x = np.linspace(-6, 6, 30)
y = np.linspace(-6, 6, 30)

X, Y = np.meshgrid(x, y)
Z = f(X, Y)
Comment

Three-dimensional Contour Plots

fig = plt.figure()
ax = plt.axes(projection='3d')
ax.contour3D(X, Y, Z, 50, cmap='binary')
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('z');
Comment

Three-dimensional Contour Plots

ax.view_init(60, 35)
fig
Comment

PREVIOUS NEXT
Code Example
Python :: image processing and resizing with python 
Python :: defaultdict python inport 
Python :: alterning format when reading from a text file 
Python :: Remove Cog to bot in Discord.py 
Python :: Obtener el valor ASCII de un carácter en Python 
Python :: python generator in while loop 
Python :: how to change text in a canvas tkinter 
Python :: how do i make snake game using python for beginners without pygame 
Python :: view does not return httpresponse 
Python :: count numbers that add up to 10 in python 
Python :: "How to get the remainder of a number when dividing in python" 
Python :: open skype ifram through link html 
Python :: replace substrings to float 
Python :: tuples in python 
Python :: aw mustard 
Python :: python loop chrome 
Python :: how to insert an array as a parameter in python 
Python :: build the .pyx file to c and run on python 
Python :: python inline assignment 
Python :: como agregar una fila a un dataframe con pandas 
Python :: how to get unknown wifi password using python 
Python :: Display complete information about the DataFrame 
Python :: how to get each word in a string in python 
Python :: for loop for multiple things 
Python :: getroot xml python 
Python :: from django.urls import reverse 
Python :: Determining Web Address In Django 
Python :: make max function returning more than one value python 
Python :: manim replacement transform 
Python :: python long multiline text 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =