Poly Ed

Robotics, Mathematics, Science, Engineering, Tutoring

Poly Ed

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • STEM Summer Camps 2025
  • Camp Resources
  • Team Math Circle
  • Robotics
  • Coding
  • Blog
  • Individuals
  • Homeschoolers
  • Contact Us
  • Test Prep Resources
  • Text Book Resources
  • Contest Problems

Category Archives: Python

Post navigation

Newer posts →

Plotting in Python Sample

Posted on April 5, 2018 by admin
 
import matplotlib.pyplot as plt
import numpy as np

t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2*np.pi*t)
plt.plot(t, s)

plt.xlabel('time (s)')
plt.ylabel('voltage (mV)')
plt.title('About as simple as it gets, folks')
plt.grid(True)
plt.savefig("test.png")
plt.show()

Courtesy of matplotlib.

Posted in Python, source code

Post navigation

Newer posts →

Recent Posts

  • 8/1/25 Balloon Launch from High Point State Park
  • Still Brainstorming FLL Combined Underwater Sensors
  • Pathfinding Algorithm
  • 7/19/24 Balloon Launch from High Point State Park
  • Balloon Code V4

Recent Comments

    Archives

    • August 2025
    • February 2025
    • August 2024
    • July 2024
    • January 2024
    • October 2023
    • July 2023
    • February 2023
    • July 2022
    • November 2021
    • September 2021
    • August 2021
    • March 2021
    • December 2020
    • October 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • August 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • November 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017

    Categories

    • Arduboy
    • Arduino
    • C
    • Class
    • Contest Problems
    • Datasheets
    • Java
    • Javascript
    • Math
    • Processing
    • PyGame
    • Python
    • Raspberry Pi
    • Scratch
    • source code
    • Test Prep
    • Uncategorized
    • Weather Balloon

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress