Skip to main content

bgplot

alt text

Basic Geometry Plotter (bgplot) is a simple python library used for fast and quick geometric graphics representation.

Installation

pip install bgplot

Basic Usage

import bgplot as bgp
from bgplot.entities import Point, Vector, Line, Plane, Axes

# Create graphics object
graphics: bgp.Graphics = bgp.Graphics()

# Personalize the graphic representation
graphics.set_limits(xlim=(0.0, 1.2),
                    ylim=(0.0, 1.5),
                    zlim=(0.0, 1.0))
graphics.set_view(azimut=-50.0, elevation=20.0)
graphics.disable('ticks', 'axes', 'walls')
graphics.set_background_color(bgp.Colors.white)

# Entities
point: Point = Point(1.0, 1.0, 1.0)
vector: Vector = Vector(0.0, 0.0, -1.0)
line: Line = Line.from_vector_and_point(vector, point)
plane: Plane = Plane.from_normal_vector_and_point(Vector(0.0, 0.0, 1.0),
                                                  Point(0.0, 0.0, 0.0))
axes: Axes = Axes(Vector(1.0, 0.0, 0.0),
                  Vector(0.0, 1.0, 0.0),
                  Vector(0.0, 0.0, 1.0))
intersection_point: Point = bgp.ops.get_intersection_of_line_and_plane(line,
                                                                       plane)

# Representation
graphics.add_point(point)
graphics.add_vector(vector, position=point, color=bgp.Colors.pink)
graphics.add_line(line, style='--', line_range=(0.0, 1.0),
                  color=bgp.Colors.gray, linewidth=0.7)
graphics.add_plane(plane, center=intersection_point, alpha=0.3)
graphics.add_axes(axes)
graphics.add_point(intersection_point, color=bgp.Colors.red)

graphics.set_title('Visual representation')
graphics.show()

alt text

Documentation

Metadata

Release files for bgplot 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bgplot 0.0.11
File Size Uploaded Provenance
bgplot-0.0.11.tar.gz 14.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bgplot 0.0.11
File Interpreter ABI Platform
bgplot-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 35.3 kB

Release files / bgplot-0.0.11.tar.gz

Download URL bgplot-0.0.11.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b1d74d8b13abd234f49ce1850b1aa4be2c61cc9f4a29bb05a00a69d0dd54edfc
BLAKE2b-256 checksum
How to use checksums
6dbbe998cc1e3f0f4e145019d8ff2d2ce8a0421991553899f24a7c59e4f10801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / bgplot-0.0.11-py3-none-any.whl

Download URL bgplot-0.0.11-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af4926e66ac2ed21e87aba9cc61cf9e4d7386c2369796197516f34edeaf3a98c
BLAKE2b-256 checksum
How to use checksums
831602a8451796f80f70735e6a43018a31738050746e00bc38f3830fbaed0c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for bgplot 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page