Skip to content
pythoneo

Pythoneo

Online How to Python stuff

  • Home
  • Privacy Policy
  • About
  • Cookie Policy

Python code to draw cos(x) using matplotlib

December 17, 2020February 18, 2025Pythoneo

I will demonstrate how to generate a graph of the cosine function, cos(x), using the Matplotlib and NumPy libraries in Python. Matplotlib is a plotting library in Python, and its pyplot module provides a collection of functions that make Matplotlib work like MATLAB. NumPy is essential for numerical operations in Python, and here we utilize Continue reading

matplotlib, numpy

Calculate age from date of birth in Python

December 16, 2020September 18, 2024Pythoneo

I’ll show you how to calculate your age in years, months, and days using Python. The script will ask for the day, month, and year of your birth, and it will output your exact age. With a few simple adjustments, this script can also be used for other datetime calculations.

Python

Here’s how to draw a hyperbola

December 15, 2020March 1, 2024Pythoneo

Let’s draw using tkinter. Hyperbola is my choice!

Tkinter

Draw random stars using turtle

December 13, 2020February 18, 2025Pythoneo

Enjoy creating random objects with Python. Now, let’s have some fun drawing stars in various positions and colors. Turtle graphics is a simple and fun way to create drawings with Python code. It uses a virtual turtle that you can command to move around the screen and draw lines, shapes, and more. This makes it Continue reading

turtle

Tkinter GUI to fetch data

December 13, 2020March 1, 2024Pythoneo

Here is the basic Tkinter GUI which fetches data.

Tkinter

Posts pagination

< 1 … 22 23

RSS RSS

  • Tkinter Message Boxes: Interacting with Users
  • Tkinter and Threading: Preventing Freezing GUIs
  • Displaying Images in Tkinter
  • Organizing Tkinter Layouts with Frames and Grid
  • Creating Pop-up Windows in Tkinter
  • How to use layout managers in Tkinter
  • How to use widgets to process text input in Tkinter applications
  • How to use these dialog boxes in Tkinter applications
  • Changing Label Text in Tkinter
  • How to Set Window Size in Tkinter

Tags

array axis button calculations chart column conversion count data type dimension draw dtype empty error fill float generate grid GUI image index integer list matrix max mean min mode multiply normal distribution number pie plot random reshape rotate round rows size string sum test text time zero

Categories

  • bokeh (1)
  • Django (8)
  • matplotlib (12)
  • numpy (120)
  • OpenCV (7)
  • Pandas (5)
  • paramiko (63)
  • Pillow (3)
  • Plotly (13)
  • Python (67)
  • Scipy (9)
  • Seaborn (16)
  • statistics (6)
  • Tkinter (23)
  • turtle (2)

Art and Media Law

Maritime Law

Proudly powered by the Izo WordPress theme