Releases: Davide-sd/sympy-plot-backends
Sympy Plot Backends v1.2.1
What's Changed
-
Added
used_by_default
inside default options for adaptive algorithm. This let the user decide wheter to use adaptive algorithm or uniform meshing by default for line plots. -
Fix the axis labels for the
plot_complex_vector
function. -
Improved a few examples in the docstring of
plot_vector
andplot_complex_vector
. -
Fixed bug with interactive update of
plot_vector
insideMatplotlibBackend
. -
Improvements to the code in preparation for merging this module into Sympy:
-
Small refactoring about the label generation: previously, the string and latex representations were generated at different times and in different functions. Now, they are generated simultaneously inside the
__init__
method of a data series. -
Changes in names of functions that are meant to remain private:
adaptive_eval
->_adaptive_eval
._uniform_eval
->_uniform_eval_helper
uniform_eval
->_uniform_eval
_correct_size
->_correct_shape
get_points
->_get_points
-
Sympy Plot Backends v1.2.0
Updated requirements for conda builds.
For a full list of changes please look at: Release Notes.
Sympy Plot Backends v1.2.0
What's Changed
-
Replaced the
line_kw
,surface_kw
,image_kw
,fill_kw
keyword arguments withrendering_kw
. This simplifies the usage between different plotting functions. -
Plot functions now accepts a new argument:
rendering_kw
, a dictionary of options that will be passed directly to the backend to customize the appearance. In particular:-
Possibility to plot and customize multiple expressions with a single function call. For example, for line plots:
plot( (expr1, range1 [opt], label1 [opt], rendering_kw1 [opt]), (expr2, range2 [opt], label2 [opt], rendering_kw2 [opt]), **kwargs )
-
Possibility to achieve the same result using the
label
andrendering_kw
keyword arguments by providing lists of elements (one element for each expression). For example, for line plots:plot(expr1, expr2, range [opt], label=["label1", "label2"], rendering_kw=[dict(...), dict(...)], **kwargs )
-
-
Interactive submodule:
-
Fixed bug with
spb.interactive.create_widgets
. -
Integration of the interactive-widget plot
iplot
into the most important plotting functions. To activate the interactive-widget plot users need to provide theparams
dictionary to the plotting function. For example, to create a line interactive-widget plot:plot(cos(u * x), (x, -5, 5), params={u: (1, 0, 2)})
-
-
Series:
-
Fixed a bug with line series when plotting complex-related function with
adaptive=False
. -
Fixed bug with
lambdify
andmodules="sympy"
. -
Fixed bug with the number of discretization points of vector series.
-
Enabled support for Python's built-in
sum()
function, which can now be used to combine multiple plots.
-
-
Backends:
-
Fixed a bug with
MatplotlibBackend
and string-valued color maps. -
Fixed a bug with
BokehBackend
about the update of quivers color when usingiplot
.
-
-
Updated tutorials and documentation.
Sympy Plot Backends v1.1.7
What's Changed
- Fixed bug with
plot_complex_list
. - Added new tutorial about singularity-dections.
Sympy Plot Backends v1.1.6
What's Changed
- Fixed bug with
label
keyword argument. - Added an error message to
plot3d
to improve its usability. - Updated documentation.
Sympy Plot Backends v1.1.5
What's Changed
- Implemented
line_color
andsurface_color
: this plotting module should now be back-compatible with the currentsympy.plotting
.
Sympy Plot Backends v1.1.4
What's Changed
color_func
is back-compatible withsympy.plotting
's
line_color
andsurface_color
.
Sympy Plot Backends v1.1.3
What's Changed
- Added
color_func
support to parametric line series. - Improved docstring.
Sympy Plot Backends v1.1.2
What's Changed
-
iplot
:- Added
servable
keyword argument:servable=True
will serves the application to a new browser windows, - Added
name
keyword argument: if used withservable=True
it will add a title to the interactive application.
- Added
-
Default settings:
- Added
servable
andtheme
tointeractive
section.
- Added
-
Fixed a bug when plotting lines with
BokehBackend
. -
Improved the way of setting the number of discretization points:
n
can now be a two (or three) elements tuple, which will overriden1
andn2
. -
It is now possible to pass a float number of discretization points, for example
n=1e04
. -
added
label
keyword argument to plot functions.
Sympy Plot Backends v1.1.1
What's Changed
-
Added
color_func
keyword argument to:plot
to apply custom coloring to lines.plot3d
andplot3d_parametric_surface
to apply custom coloring to 3D
surfaces.- to accomodate
color_func
,ParametricSurfaceSeries.get_data()
now
returns 5 elements instead of 3.
-
Added plot range to default settings.
-
Implemented a custom printer for interval math to be used inside
ImplicitSeries
. -
Added
plot3d_implicit
to visualize implicit surfaces. -
MatplotlibBackend
now uses default colorloop fromplt.rcParams['axes.prop_cycle']
.