# -*- coding: utf-8 -*- """ Created on Tue Oct 11 20:04:11 2022 @author: Roman """ import numpy as np import matplotlib.pyplot as plt x = np.linspace(1, 5, 100) y = np.linspace(2, 10, 100) X, Y = np.meshgrid(x, y) Z = np.cos(X) + np.sin(Y) fig = plt.figure() ax1 = fig.add_subplot(121, projection='3d') ax1.plot_surface(X, Y, Z) ax1.set_title("surface") ax2 = fig.add_subplot(122) ax2.contour(X, Y, Z) ax2.set_title("contour") plt.tight_layout() plt.show()