Skip to main content

Helper for plotting 3d vectors and coordinate systems.

Project description

Transformplot 3D

Transformplot 3D is a small library with useful commands that help visualize matrix transformations with matplotlib plots. These matrices are from the transformations package.

It consists of only two main modules vectors and quiver. vectors offers some basic commands of reshaping a vector or a matrix, while quiver offers methods of converting lists of vectors and matrices into tuples ready to be input in matplotlib quiver() method. Note that matplotlib is not actually required for the methods in this package, but is needed to take advantage of it.

All the methods in the package are shown below. Because this is a small package, I don't think there's a for documentation yet.

Repository on Github

Methods

Because this is a small package, I don't think there's a for documentation yet. Thus, all methods are shown below

extend_vector(vector: list)

  • Returns the input list with a 1 appended at the end.

reduce_vector(vector: list)

  • Returns the input list without the last element.

reduced_and_extended(vector)

  • Returns the input vector and a reduced version of it (without the last element)

extend_matrix(matrix: list)

  • Returns an extension of the input with the form [[matrix, zeros],[zeros,1]].

reduce_matrix(matrix: list)

  • Returns the input matrix without the last row and last column.

one_vector_many_systems(vector, matrices: list)

  • Takes a single input vector and returns the position and direction it would have if it was in the coordinate systems generated by the input transformation matrices.

many_vectors_one_system(vectors: list, matrix: list)

  • Takes a each input vector and returns the position and direction they would have if it was in the coordinate system generated by the input transformation matrix.

many_vectors_many_systems(vectors: list, matrices: list)

  • Takes a each input vector and returns the position and direction they would have if it was in the coordinate system generated by the corresponding input matrix. Input vector list and input matrix list must be the same size.

draw_axes_from_matrices(matrices: list, orderByAxes = False, separateXYZ = False)

  • This method returns a 6-tuple of lists, the first 3 indicate the origin of the coordinate systems, the last 3 indicate the direction of the axes. Basis vectors of the coordinate systems are generated by the input transformation matrices.

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

transformplot3d-0.0.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

transformplot3d-0.0.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file transformplot3d-0.0.4.tar.gz.

File metadata

  • Download URL: transformplot3d-0.0.4.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for transformplot3d-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7bb72ace8e2531c118e2c69b49acc7d21376aa775854e85fdf145c0373bb05da
MD5 34d053d62aa1eda6e4cc59ee256d76a5
BLAKE2b-256 195fbb0823b9ffc806d732e3848f0a63e5544062906a389283620c767076e763

See more details on using hashes here.

File details

Details for the file transformplot3d-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for transformplot3d-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 852fef4e923bf10581a83d01505c2e0f5beb9fe0fdbf6afb74e56a4e49d63229
MD5 9e887e2fd26b246016cfd2a5a0ac11f0
BLAKE2b-256 789cb34f56a7235f649184bfb50de6d55e19421b8f6f3d9b402169e863452901

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