Skip to main content

An extension of dqrobotics to use matplotlib.pyplot to plot DQ elements.

Project description

pyplot extensions to dqrobotics

License

LGPL

Installation

python3 -m pip install dqrobotics-pyplot

Calling example

After installation, the example script can be called with

dqrobotisc_pyplot_example

Usage example

See the script in

src/dqrobotics_extensions/pyplot/example.py

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L31-67

Importing the library

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L24-25

Seting up the plot

dqrobotics-pyplot uses matplotlib.pyplot, so always remember to create a proper figure and axes with projection='3d''. Other settings are a matter of taste and desired quality.

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L33-36

Drawing a pose

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L44-48

Drawing a line

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L50-54

Drawing a plane

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L56-60

Drawing a manipulator

https://github.com/MarinhoLab/dqrobotics-pyplot/blob/7f8a4b02ef1f2e03bdcafa551b3ea8beadfdcf61/src/dqrobotics_extensions/pyplot/example.py#L62-65

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

dqrobotics_pyplot-25.4.0.8.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

dqrobotics_pyplot-25.4.0.8-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file dqrobotics_pyplot-25.4.0.8.tar.gz.

File metadata

  • Download URL: dqrobotics_pyplot-25.4.0.8.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dqrobotics_pyplot-25.4.0.8.tar.gz
Algorithm Hash digest
SHA256 d02dfe6f3aeaa701c35b90471dfe41a5ef087500ca5a758db21e729612c21fa4
MD5 db8193f69b9e6484fc846c8edb9af14a
BLAKE2b-256 2591aaac28d9f65677d3ddce66479e302a7342a8ff1643a67ec89285e17d12b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqrobotics_pyplot-25.4.0.8.tar.gz:

Publisher: python-publish.yml on MarinhoLab/dqrobotics-pyplot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dqrobotics_pyplot-25.4.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for dqrobotics_pyplot-25.4.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 77acd1f272ca66edaaf6594c3dd016042e2e1821a38f0483dfaed51027b5ab39
MD5 17aa7b4e11c578db5841cea78d8617fe
BLAKE2b-256 86fb5b0acb5b939dbbbc5907670e5a8bf4a8fb35558b4e9563fe8e38ee390ece

See more details on using hashes here.

Provenance

The following attestation bundles were made for dqrobotics_pyplot-25.4.0.8-py3-none-any.whl:

Publisher: python-publish.yml on MarinhoLab/dqrobotics-pyplot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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