Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

xyz_canvas

Interactive canvas for editing 3D geometry, using only matplotlib.pyplot

What is it?

XYZ_canvas provides the starting point to create Python code that allows defining and editing objects in 3D space, using only Matplotlib and just over 200 lines of library in canvas.py.

This library provides you with the 3D co-ordinates of points clicked on and moved to / over, so that you can create your own code to process the points created. You can reach down into the definitions made in canvas.py to manipulate what's created during use, e.g. delete all the points as shown in the customisation example.

Capture

How can I use it?

The "demo_V1.1.0_minimal.py" program shows how simple it is to instantiate the canvas:

from xyz_canvas.canvas import xyz_canvas

#instantiating the canvas:
demo = xyz_canvas(  xlim =[0,1], ylim =[0,1], zlim=[0,1],
                                xlabel="x", ylabel="y", zlabel="z"            
                               )

# showing the plot
demo.plt.show()

# note that this is so minimal that all it does is display;
# the resulting points are not used here.

print("Demo finished ...")

If you want to do things with the points created, look in "demo_V1.1.0_with_customisation.py". Here you'll see examples of customising the colour scheme and reacting to mouse clicks and mouse moves.

Installation

Install with pip:

pip install xyz_canvas

Or simply download the canvas.py and demo.py files, and develop from there.

Future plans / ideas

  • demo how to build on top of this to create objects? (might highlight extra functions needed here)
  • add snap to grid (make it settable as dx,dy,dz
  • polar / spherical co-ordinates?
  • transforms?

Metadata

Release files for xyz-canvas 1.1.2

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

Source distribution (sdist)

Source distribution for xyz-canvas 1.1.2
File Size Uploaded Provenance Actions
xyz_canvas-1.1.2.tar.gz 5.8 kB Without provenance Details for xyz_canvas-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyz-canvas 1.1.2
File Interpreter ABI Platform Actions
xyz_canvas-1.1.2-py3-none-any.whl Python 3 none any Details for xyz_canvas-1.1.2-py3-none-any.whl

Total release size: 12.5 kB

Release files / xyz_canvas-1.1.2.tar.gz

Download URL xyz_canvas-1.1.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9a32601ff7dcd6cb2b263f092a8f7186fe5dfcc4b0aca5eba75895830328e2f3
BLAKE2b-256 checksum
How to use checksums
6019567b32947da4de104cab7b07de3dcdb196fc3cc53f920dcf8169679a5e74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / xyz_canvas-1.1.2-py3-none-any.whl

Download URL xyz_canvas-1.1.2-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9ac594d8875e6921c0b98af53957a19350790b2da9d232091a3170aa41f5aeb
BLAKE2b-256 checksum
How to use checksums
53d8c3df0ccaab8102f20002bd428d20c5d17ff78abf2a4201ef5b841ae879dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for xyz-canvas 1.1.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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