lunes, 22 de enero de 2024

Graficar Resorte con Python y Matplotlib

Tener instalado la libreria matplotlib. Desde la linea de comandos o CMD digitar pip install matplotlib.

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
X = np.linspace(0,15,1000)
Y = np.cos(X)

Z = np.sin(X)

fig = plt.figure()
ax = plt.axes(projection='3d')

ax.plot3D(X,Y,Z)
plt.show()


No hay comentarios:

Publicar un comentario

Mini Software de Recibo con VB .Net 2022 y Excel 365 + Impresion + Codigo Fuente

De la caja de Herramientas agregar PrintDocument1 y PrintPreviewDialog1. Imports System.Runtime.InteropServices.JavaScript.JSType Imports Mi...