bgplot-0.0.9
توضیحات
A python library for basic geometry plotting that uses matplotlib as client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bgplot-0.0.9 |
| نام | bgplot |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vistor |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/bgplot/ |
| مجوز | - |
# bgplot

Basic Geometry Plotter (bgplot) is a simple python library used for fast and quick geometric graphics representation.
## Installation
```
pip install bgplot
```
## Basic Usage
```python
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()
```

## Documentation
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| ==3.6.3 | matplotlib |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl bgplot-0.0.9:
pip install bgplot-0.0.9.whl
نصب پکیج tar.gz bgplot-0.0.9:
pip install bgplot-0.0.9.tar.gz