About 38,200 results
Open links in new tab
  1. python - How to plot graph sine wave - Stack Overflow

    A simple way to plot sine wave in python using matplotlib. import numpy as np import matplotlib.pyplot as plt x=np.arange(0,3*np.pi,0.1) y=np.sin(x) plt.plot(x,y) plt.title("SINE …

  2. Plotting Sine and Cosine Graph using Matplotlib in Python

    Aug 12, 2024 · Step 1: Import the necessary library for plotting. Step 2: Create a list or load your own data for Plotting Sine Graph. Step 3: Plotting Sine Graph with the created list or load data. …

  3. numpy - Plot Square Wave in Python - Stack Overflow

    Feb 1, 2021 · This code below will do the trick: import math, numpy from matplotlib import pyplot as plt x = numpy.linspace(0, 10, 1000) y = numpy.array([1 if math.floor(2 * t) % 2 == 0 else 0 …

  4. How to fix the issue of plotting a 2D sine wave in python

    Mar 29, 2022 · You cannot plot snapshots of the 2D sinewave next to each other. The x-axis is "reserved" for the spatial variation of the signal, thus it cannot be used to plot temporal …

  5. Plotting Waves In Python – Mattia Giuri's bizarre blog

    Nov 21, 2020 · I really like plotting waves in Python: there are many ways you can show interesting patterns both in 2D and 3D. I’m obviously using the numpy and matplotlib libraries …

  6. 2D-wave-equation/2DWaveEquation.py at master - GitHub

    #The following code sample describes solving the 2D wave equation. #This code will look at a 2D sine wave under initial conditions. #There are a few different steps for doing this. #STEP 1. …

  7. How to evaluate and plot a 2D function in python - Moonbooks

    Nov 16, 2021 · How to evaluate and plot a 2D function in python ? Plot a 3D function. Note: To visualize in 3D, there are several solutions, we can for example use the contour3D function: …

    Missing:

    • Wave Function

    Must include:

  8. Animations with matplotlib 1: Making waves | Raibatak Das

    Jan 17, 2021 · matplotlib 1 is a python library for creating high quality scientific plots. It contains a module matplotlib.animation that can be used to create animations. This post shows examples …

  9. 2D-standing-wave-simulation/2DStandingWaveSimulation.py at …

    #The following code sample simulates a two dimensional standing wave. #Import the libraries needed to perform the simulation, including numpy, matplotlib for plotting #animation and …

  10. 2D PlottingPython Numerical Methods - University of …

    The basic plotting function is plot(x,y). The plot function takes in two lists/arrays, x and y, and produces a visual display of the respective points in x and y. TRY IT! Given the lists x = [0, 1, …

    Missing:

    • Wave Function

    Must include:

  11. Some results have been removed
Refresh