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.1.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.1.1
File Size Uploaded
sympy_plot_backends-3.1.1.tar.gz 394.2 kB Details

Built distribution (wheel)

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

Total release size: 709.1 kB

Release files / sympy_plot_backends-3.1.1.tar.gz

Download URL sympy_plot_backends-3.1.1.tar.gz
Size 394.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d9d71033fe36601bf800216a6b6c0ec8a9f4fe687acacc15b1a69bee1b1aef3b
BLAKE2b-256 checksum
How to use checksums
3bde2766d8ebe78b27a525999092ca310bf29305c67f87efa3580bdd5db4033f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

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

Download URL sympy_plot_backends-3.1.1-py3-none-any.whl
Size 314.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de7f2d6388e6c3f5ce28c235260f8cff1f9eea4cda3f6d391b54b89dbb5b3f5
BLAKE2b-256 checksum
How to use checksums
b697ebe1cd2823527ad746375398f2a3484a2b4cd302dad2616d15bf89529e4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

4.2.0

2 release files

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.4.5

2 release files

3.4.4

2 release files

3.4.3

2 release files

3.4.2

2 release files

3.4.1

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

This release

3.1.1 This release

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.14.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.12.9

2 release files

0.12.8

2 release files

0.12.7

2 release files

0.12.6

2 release files

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