Releases: Davide-sd/sympy-plot-backends
Sympy Plot Backends v1.6.5
What's Changed
-
Refinements and bug correction on
plot_polar
: now it supports both cartesian and polar axis. Setpolar_axis=True
to enable polar axis. -
Added polar axis support to
plot_contour
withMatplotlibBackend
. -
3D complex plots uses an auto aspect ratio by default.
Sympy Plot Backends v1.6.4
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
What's Changed
-
Fixed bug with
plot_geometry
and 3D geometric entities. -
Added tutorial about combining plots together.
Sympy Plot Backends v1.6.2
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 toTrue
in order to visualize minor grid lines. -
Improved documentation.
-
Enabled
color_func
keyword argument onplot_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
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"]
toFalse
: 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 toplot_piecewise
to choose whether to show circular markers on endpoints. -
Fixed bug with plotting 3D vectors.
Sympy Plot Backends v1.6.0
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 onK3DBackend
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
andplot_real_imag
: the input expression is no longer wrapped by symbolicre()
orim()
. Instead, the necessary processing is done on the series after the complex function has been evaluated. This improves performance.
-
-
Parametric2DLineSeries
now supportdetect_poles
. -
Implemented support for
color_func
keyword argument onplot_list
andplot_complex_list
. -
Added
extras_require
tosetup.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, ...
- by default,
-
Documentation:
-
Improved examples.
-
Added examples with
PlotlyBackend
.
-
Sympy Plot Backends v1.5.0
What's Changed
-
Implemented the
plot3d_spherical
function to plot functions in spherical coordinates. -
Added the
wireframe
option toplot3d
,plot3d_parametric_surface
andplot3d_spherical
to add grid lines over the surface. -
Fixed bug with
plot3d
andplot_contour
when dealing with instances ofBaseScalar
. -
Added
normalize
keyword argument toplot_vector
andplot_complex_vector
to visualize quivers with unit length. -
Improve documentation of
plot_vector
andplot_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
onK3DBackend
. -
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
andplot3d_parametric_line
, thetz
keyword argument has been renamed totp
. -
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
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
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 theis_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'smeshgrid
withindexing='ij'
. This improves the generation of 3D streamlines. -
Fixed bug with
plot3d
andplot_contour
: whenparams
is provided the specified backend will be instantiated. -
Fixed bug with
K3DBackend
andplot3d_implicit
.
Sympy Plot Backends v1.3.0
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 theplot_vector
function. -
Implemented keyword argument validator: if a user writes a misspelled keyword arguments, a warning message will be raised showing one possible alternative.