Skip to main content

Sympy Plotting Backends

PyPI version Conda Version Documentation Status Coverage

This module contains a few plotting backends that can be used with SymPy and Numpy. A backend represents the plotting library: it provides the necessary functionalities to quickly and easily plot the most common types of symbolic expressions (line plots, surface plots, parametric plots, vector plots, complex plots, control system plots).

The following plotting libraries are supported: Matplolib, Plotly, Bokeh, K3D-Jupyter, Mayavi.

What's new in comparison to SymPy

On top of the usual plotting functions exposed by SymPy (plot, plot_parametric, plot3d, etc.), this module offers the capabily to:

  • use a different plotting library.
  • visualize discontinuities on 2D line plots.
  • visualize 2D/3D vector fields with quivers or streamlines.
  • visualize complex functions with domain coloring.
  • visualize entities from the sympy.geometry module.
  • visualize control systems' response to input signals, visualize Bode, Nyquist and Nichols plots.
  • create parametric-interactive plots using widgets (sliders, buttons, etc.) with ipywidgets or Holoviz's Panel.
  • combine multiple plots into a grid-like layout.

Please, read the following documentation page to understand the differences between this module and sympy.plotting.

If you feel like some feature could be implemented, open an issue or create a PR.

Explore the Capabilities

Read the documentation to explore the capabilities before the installation, which contains plenty of examples.

Installation

SymPy Plotting Backends can be installed with pip or conda. By default, only basic plotting with Matplotlib will be installed:

pip install sympy_plot_backends

Or

conda install -c conda-forge sympy_plot_backends

To install the complete requirements in order to get interactive plots, bokeh, plotly, k3d, vtk, execute the following command:

pip install sympy_plot_backends[all]

Or:

conda install -c anaconda scipy notebook colorcet
conda install -c conda-forge adaptive
conda install -c conda-forge panel
conda install -c anaconda ipywidgets
conda install -c conda-forge ipympl
conda install -c bokeh ipywidgets_bokeh
conda install -c conda-forge k3d msgpack-python
conda install -c plotly plotly
conda install -c conda-forge vtk

Finally, if you are using zshell, the above pip command is going to fail. Use the following instead:

pip install "sympy_plot_backends[all]"

Warnings

Some backend comes with a memory cost. Since they require external libraries and/or open a server-process in order to visualize the data, memory usage can quickly rise if we are showing many plots. Keep an eye on you system monitor and act accordingly (close the kernels, restart the browser, etc.).

Metadata

Release files for sympy-plot-backends 3.0.1

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

Source distribution (sdist)

Source distribution for sympy-plot-backends 3.0.1
File Size Uploaded Provenance Actions
sympy_plot_backends-3.0.1.tar.gz 359.5 kB Without provenance Details for sympy_plot_backends-3.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sympy-plot-backends 3.0.1
File Interpreter ABI Platform Actions
sympy_plot_backends-3.0.1-py3-none-any.whl Python 3 none any Details for sympy_plot_backends-3.0.1-py3-none-any.whl

Total release size: 650.1 kB

Release files / sympy_plot_backends-3.0.1.tar.gz

Download URL sympy_plot_backends-3.0.1.tar.gz
Size 359.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed96496766f2be34d042518e9f052025f12c2425398b430f73bca78252f0bbf3
BLAKE2b-256 checksum
How to use checksums
b894636b6f8280bd847b4c0c83281c801c190e6927dea0b008e08a7ad395c7ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / sympy_plot_backends-3.0.1-py3-none-any.whl

Download URL sympy_plot_backends-3.0.1-py3-none-any.whl
Size 290.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10fcb31ea5e1253b32a6c3f8226cb4a3523da6b98537ffd5c839d4ed2c16938a
BLAKE2b-256 checksum
How to use checksums
68689f352fecf345068569e3af597c084a514d8e349f1a9f3d6050fc0b13eb40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for sympy-plot-backends 3.0.1

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.

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files No provenance

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