Skip to main content

plot 3d with different backends

Project description

draw3d工具包

本项目旨在使用不同的Python绘图后端绘制三维规则图形

1. 安装

pip install draw3d

2. 使用示例

2.1 Matplotlib后端
import matplotlib.pyplot as plt

axGlob = plt.axes(projection='3d')
MatplotPainter.drawCube(axGlob, 0, 0, 0, 0.5, 0.5, 0.5)	# 绘制cube
MatplotPainter.drawCylinder(axGlob, 0.5, 0, 0, 1, 0.5, 0.5, alpha=0.8, main_axis='x')	# 绘制圆柱体

MatplotPainter.setAxisLimits(axGlob, 2, 2, 2)	# 设置各坐标轴范围
MatplotPainter.setInitView(axGlob, 50, 50)	# 设置初始视角
plt.show()	# 显示图形

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

draw3d-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

draw3d-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file draw3d-0.0.1.tar.gz.

File metadata

  • Download URL: draw3d-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for draw3d-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2598586c34cb624fafb872a9ae89419f3b33f60a5d33184572324101cca176b2
MD5 07e17cf238b9c7099a1dc2fa6e85ecfd
BLAKE2b-256 436d27a794bc04e5b4736025abbfea6103fd00e6820b268565d19ac8c9c839ad

See more details on using hashes here.

File details

Details for the file draw3d-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: draw3d-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for draw3d-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c89373e643c7477e6528e02f81d819c8883635dd78678fd9fe5686648d2be55
MD5 75b644c2ded72a3f99035879b71aad39
BLAKE2b-256 2de9cc19c4ef15b995e2320610cd0331495c589acdf87cbdfb79e13e6b620798

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