Skip to content

Releases: Davide-sd/sympy-plot-backends

Sympy Plot Backends v1.6.5

19 Dec 18:38
Compare
Choose a tag to compare

What's Changed

  • Refinements and bug correction on plot_polar: now it supports both cartesian and polar axis. Set polar_axis=True to enable polar axis.

  • Added polar axis support to plot_contour with MatplotlibBackend.

  • 3D complex plots uses an auto aspect ratio by default.

Sympy Plot Backends v1.6.4

18 Dec 11:14
Compare
Choose a tag to compare

What's Changed

  • MatplotlibBackend:

    • improved aspect ratio logic. It is now possible to use the new values for 3D plots for Matplotlib>=3.6.0, like "equals".

    • exposed the ax attribute to easily retrieve the plot axis.

  • Added camera keyword arguments to backends in order to set the 3D view position. Refer to each backend documentation to get more information about its usage.

  • improved documentation.

Sympy Plot Backends v1.6.3

14 Dec 10:24
Compare
Choose a tag to compare

What's Changed

  • Fixed bug with plot_geometry and 3D geometric entities.

  • Added tutorial about combining plots together.

Sympy Plot Backends v1.6.2

13 Dec 11:06
Compare
Choose a tag to compare

What's Changed

  • Added plot3d_list function to plot list of coordinates on 3D space.

  • Changed value to default setting: cfg["matplotlib"]["show_minor_grid"]=False. Set it to True in order to visualize minor grid lines.

  • Improved documentation.

  • Enabled color_func keyword argument on plot_vector.

  • PlotlyBackend:

    • if the number of points of a 2D line is greater than some threshold, the backend will switch to go.Scattergl. This improves performance.

    • Fixed bug with interactive widget contour plot and update of colorbar.

  • MatplotlibBackend can now combine 3d plots with contour plots.

  • Fixed bug with addition of interactive plots.

Sympy Plot Backends v1.6.1

29 Nov 18:30
Compare
Choose a tag to compare

What's Changed

  • Improvements to documentation. In particular, ReadTheDocs now shows pictures generated with PlotlyBackend, K3DBackend as well as interactive plots with widgets.

  • Default settings:

    • Changed cgf["interactive"]["theme"] to "light": interactive plots served on a new browser window will use a light theme.

    • Changed cgf["bokeh"]["update_event"] to False: Bokeh won't update the plot with new data as dragging or zooming operations are performed.

    • Added new option cgf["k3d"]["camera_mode"].

  • Improvements to MatplotlibBackend:

    • Added label capability to plot_implicit.

    • show() method now accepts keyword arguments. This is useful to detach the plot from a non-interactive console.

  • Added dots keyword argument to plot_piecewise to choose whether to show circular markers on endpoints.

  • Fixed bug with plotting 3D vectors.

Sympy Plot Backends v1.6.0

14 Nov 09:53
Compare
Choose a tag to compare

What's Changed

  • Added new plotting functions:

    • plot3d_revolution to create surface of revolution.

    • plot_parametric_region, still in development.

  • MatplotlibBackend:

    • Fixed bug with colormaps and normalization.

    • Improved update speed when dealing with parametric domain coloring plots.

  • Improved zlim support on K3DBackend for interactive widget plots.

  • Fixed bug with parametric interactive widget plots and PlotlyBackend: the update speed is now decent.

  • Series:

    • Moved LineOver1DRangeSeries._detect_poles to _detect_poles_helper.

    • plot_complex and plot_real_imag: the input expression is no longer wrapped by symbolic re() or im(). Instead, the necessary processing is done on the series after the complex function has been evaluated. This improves performance.

  • Parametric2DLineSeries now support detect_poles.

  • Implemented support for color_func keyword argument on plot_list and plot_complex_list.

  • Added extras_require to setup.py:

    • by default, pip install sympy_plot_backends will install only the necessary requirements to get non-interactive plotting to work with Matplotlib.
    • use pip install sympy_plot_backends[all] to install all other packages: panel, bokeh, plotly, k3d, vtk, ...
  • Documentation:

    • Improved examples.

    • Added examples with PlotlyBackend.

Sympy Plot Backends v1.5.0

16 Oct 18:11
Compare
Choose a tag to compare

What's Changed

  • Implemented the plot3d_spherical function to plot functions in spherical coordinates.

  • Added the wireframe option to plot3d, plot3d_parametric_surface and plot3d_spherical to add grid lines over the surface.

  • Fixed bug with plot3d and plot_contour when dealing with instances of BaseScalar.

  • Added normalize keyword argument to plot_vector and plot_complex_vector to visualize quivers with unit length.

  • Improve documentation of plot_vector and plot_complex_vector.

  • Improved test coverage on complex and vector plotting functions.

  • Improvements on PlotlyBackend:

    • it is now be able to plot more than 14 2d/3d parametric lines when use_cm=False.

    • improved logic to show colorbars on 3D surface plots.

    • added support for custom aspect ratio on 3D plots.

  • Improved support for xlim, ylim, zlim on K3DBackend.

  • Series:

    • Fixed bug with uniform evaluation while plotting numerical functions.

    • Fixed bug with color_func.

    • Added transformation keyword arguments tx, ty, tz to parametric series.

  • Breaks:

    • Inside plot_parametric and plot3d_parametric_line, the tz keyword argument has been renamed to tp.

    • Removed Mayavi from setup dependencies. Mayavi is difficult to install: can't afford the time it requires for proper setup and testing. MayaviBackend is still available to be used "as is".

Sympy Plot Backends v1.4.0

22 Aug 11:42
Compare
Choose a tag to compare

What's Changed

Fixed bad character for conda builds.

For a full list of changes please look at: Release Notes.

Sympy Plot Backends v1.4.0

22 Aug 11:12
Compare
Choose a tag to compare

What's Changed

  • Reintroduced MayaviBackend to plot 3D symbolic expressions with Mayavi. Note that interactive widgets are still not supported by this backend.

  • plot_contour is now able to create filled contours or line contours on backends that supports such distinction. Set the is_filled keyword argument to choose the behaviour.

  • Implemented interactive widget support for plot_list.

  • Implemented back-compatibility-related features with SymPy.

  • Fixed bugs with PlaneSeries:

    • Data generation for vertical planes is now fixed.
    • K3DBackend is now able to plot this series.
    • Similar to other 3D surfaces, planes will be plotted with a solid color.
  • Fixed bug with Vector3DSeries: the discretized volume is now created with Numpy's meshgrid with indexing='ij'. This improves the generation of 3D streamlines.

  • Fixed bug with plot3d and plot_contour: when params is provided the specified backend will be instantiated.

  • Fixed bug with K3DBackend and plot3d_implicit.

Sympy Plot Backends v1.3.0

03 Aug 09:33
Compare
Choose a tag to compare

What's Changed

  • Added support for plotting numerical vectorized functions. Many of the plotting functions exposed by this module are now able to deal with both symbolic expressions as well as numerical functions. This extends the scope of this module, as it is possible to use it directly with numpy and lambda functions. For example, the following is now supported:

     import numpy as np
     plot(lambda t: np.cos(x) * np.exp(-x / 5), ("t", 0, 10))
    
  • Added support for vector from the sympy.physics.mechanics module in the plot_vector function.

  • Implemented keyword argument validator: if a user writes a misspelled keyword arguments, a warning message will be raised showing one possible alternative.