Skip to main content

Sympy Plotting Backends

PyPI version Conda (channel only) Documentation Status Coverage Binder

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).

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 backend.
  • visualize discontinuities on 2D line plots.
  • plot_piecewise to visualize 2D line plots of piecewise functions with their discontinuities.
  • plot_vector to quickly visualize 2D/3D vector fields with quivers or streamlines.
  • plot_real_imag, plot_complex, plot_complex_list, plot_complex_vector to visualize complex functions.
  • plot_polar function.
  • plot_geometry to quickly visualize entities from the sympy.geometry module.
  • iplot function to create parametric-interactive plots using widgets (sliders, buttons, etc.).
  • plotgrid function, which replaces the PlotGrid class: it allows to combine multiple plots into a grid-like layout. It works with Matplotlib, Bokeh and Plotly.

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

To explore the capabilities before the installation, you can:

  1. Read the documentation, download this repository and follow the tutorials inside the tutorials folder.
  2. Click the following button to run the tutorials with Binder (note that Binder is slow to load the module and execute the commands). Binder

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 davide_sd 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 ipympl panel k3d vtk msgpack-python
conda install -c bokeh ipywidgets_bokeh
conda install -c plotly plotly

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 1.6.5

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 1.6.5
File Size Uploaded Provenance Actions
sympy_plot_backends-1.6.5.tar.gz 154.6 kB Without provenance Details for sympy_plot_backends-1.6.5.tar.gz

Built distribution (wheel)

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

Total release size: 320.7 kB

Release files / sympy_plot_backends-1.6.5.tar.gz

Download URL sympy_plot_backends-1.6.5.tar.gz
Size 154.6 kB
Tags Source
SHA-256 checksum
How to use checksums
304ab7e8df346543388254d91464557f53e051dbb6552b9ebbd1a5bb57cd727a
BLAKE2b-256 checksum
How to use checksums
1bc2e7fcf80e00adaab673cbb6ec931c034778dcc4c5b686edc68ae08c90471e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

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

Download URL sympy_plot_backends-1.6.5-py3-none-any.whl
Size 166.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0971864328e2cfde43392ea43f56a4860f5bfbe4c9cd5e70fd38c6a2505fd5fd
BLAKE2b-256 checksum
How to use checksums
8279e2a1b0ad822bd2df3767b31560329df2400968f3c520f7be145410b3e8ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for sympy-plot-backends 1.6.5

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

1.6.5 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