Skip to main content

A Python library to draw geometric triangles using matplotlib and numpy

Project description

draw_triangle

Python library to draw geometric triangle shapes using numpy and matplotlib.

Features

  • Equilateral triangle
  • Right triangle
  • Isosceles triangle
  • Custom triangle using vertices

Installation

pip install draw-triangle-ajay


Usage

Equilateral Triangle

from draw_triangle import equilateral
equilateral(5)

Right Triangle

from draw_triangle import right_triangle
right_triangle(5, 4)

Isosceles Triangle

from draw_triangle import isosceles
isosceles(6, 5)

Custom Triangle

from draw_triangle import draw_triangle

draw_triangle([(0, 0), (4, 0), (2, 3)])

Dependencies

  • numpy
  • matplotlib

Author

Ajay Kumar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

draw_triangle_ajay-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

draw_triangle_ajay-0.0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file draw_triangle_ajay-0.0.2.tar.gz.

File metadata

  • Download URL: draw_triangle_ajay-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for draw_triangle_ajay-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c683e215bae105144af7fea5279221575631fd7363f8451dadae64f3a2b3f924
MD5 a87a755f2cdcbe3fd58c9737b85a80ea
BLAKE2b-256 dd8356c184cdbb59fc9249a7ee79b08e78b83f8b41226fc40aec40a23368321f

See more details on using hashes here.

File details

Details for the file draw_triangle_ajay-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for draw_triangle_ajay-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6acd0f49b298bf467849a2ed9b45242d6786d47f95e87f5fe8ae383c9ac1a85b
MD5 b6313f25e389eeddd199d4a051af6e03
BLAKE2b-256 cf2f04b7d6b0f0a932aaf06183466570c6feb479256e837c03704330d92b3e3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page