Skip to main content

dtumathtools

Description

This package is a collection of easy-to-use commands for plotting using SymPy. It is designed to fit the requirements of the Mathematics 1a/1b courses at the Technical University of Denmark. This includes, but is not limited to:

  • Plotting of vector fields and vectors
  • 2D plotting of SymPy functions
  • 3D plotting of SymPy functions
  • Scatterplots in 2D and 3D

The plotting functions are an extension of sympy-plot-backends, and so documentation and examples of plots (for all functions but dtuplot.scatter() and dtuplot.quiver()) can be found at sympy-plot-backends.readthedocs.io/. Additional functionality and usage is given through course material.

Installation

To install dtumathtools using conda, run the following command:

conda install dtumathtools

To install using PyPi, run the following command

pip install dtumathtools

Then one can import all the utility by writing

from dtumathtools import *

All plotting functionality can be found using dtuplot.xxx (including all spb plotting functions).

Usage

Use is designed for the Mathematics 1a/1b courses at the Technical University of Denmark. Any use-case outside this scope is thus not considered, but very welcome!

Backends

Multiple different backends (plotting libraries) can be used (especially helpful for some 3D plots). Currently, Matplotlib (MB), Plotly (PB), Bokeh (BB, 2D only), and K3D-Jupyter (KB, 3D only) are supported (Mayavi (MAB, 3D only) might be supported in the future). The user can change the backend for a plot using the backend keyword argument (eg. backend=dtuplot.PB), or change the default (here for 3D, but similar for 2D) using:

dtuplot.cfg["backend_3D"] = "plotly"
dtuplot.set_defaults(dtuplot.cfg)

For further descriptions of the strengths and benefits of each, see this page.

Contributing

You are very welcome to contribute in the way that makes sense to you! The development team will consider all pull requests at the repo here. For changes to plotting functionality outside scatter and quiver, direct queries to spb.

Authors and acknowledgment

The project would have never gotten off the ground without Jakob Lemvig and his engagement with SymPy in Mathematics 1. Thank you to Ulrik Engelund Pedersen for trusting us with this task. Finally, a huge thanks to the professors of the course for making great and engaging education: Michael Pedersen and Karsten Schmidt.

License

Open-source under the BSD license. This means that you are free to use it however you like, be it academic, commercial, creating forks or derivatives, as long as you copy the BSD statement if you redistribute it (see the LICENSE file for details).

Metadata

Release files for dtumathtools 2025.2.0

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

Source distribution (sdist)

Source distribution for dtumathtools 2025.2.0
File Size Uploaded Provenance Actions
dtumathtools-2025.2.0.tar.gz 32.8 kB Without provenance Details for dtumathtools-2025.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dtumathtools 2025.2.0
File Interpreter ABI Platform Actions
dtumathtools-2025.2.0-py3-none-any.whl Python 3 none any Details for dtumathtools-2025.2.0-py3-none-any.whl

Total release size: 48.5 kB

Release files / dtumathtools-2025.2.0.tar.gz

Download URL dtumathtools-2025.2.0.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4f6d66d1578b44b9bf20da276cb8b05dc09cc04ebb6c0669eee0e8837f207fd7
BLAKE2b-256 checksum
How to use checksums
f4c567fd59d9554fdf3003569097136ab6bb10649d9533e5452b0674762cc0d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / dtumathtools-2025.2.0-py3-none-any.whl

Download URL dtumathtools-2025.2.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1a8fdd4df64b95c4a452598baae713bdf6413dd2d5459288f555f0139c25530
BLAKE2b-256 checksum
How to use checksums
1ee585297acf331dd230d509b674cf544ee3a6041a0dca8481487068e9bddc38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Security for dtumathtools 2025.2.0

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