Skip to content

Releases: Davide-sd/sympy-plot-backends

Sympy Plot Backends v1.2.1

22 Jul 13:09
Compare
Choose a tag to compare

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 and plot_complex_vector.

  • Fixed bug with interactive update of plot_vector inside MatplotlibBackend.

  • 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

20 Jul 10:50
Compare
Choose a tag to compare

Updated requirements for conda builds.

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

Sympy Plot Backends v1.2.0

18 Jul 08:59
Compare
Choose a tag to compare

What's Changed

  • Replaced the line_kw, surface_kw, image_kw, fill_kw keyword arguments with rendering_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 and rendering_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 the params 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 and modules="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 using iplot.

  • Updated tutorials and documentation.

Sympy Plot Backends v1.1.7

03 Jul 07:47
Compare
Choose a tag to compare

What's Changed

  • Fixed bug with plot_complex_list.
  • Added new tutorial about singularity-dections.

Sympy Plot Backends v1.1.6

29 Jun 14:07
Compare
Choose a tag to compare

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

28 Jun 22:12
Compare
Choose a tag to compare

What's Changed

  • Implemented line_color and surface_color: this plotting module should now be back-compatible with the current sympy.plotting.

Sympy Plot Backends v1.1.4

27 Jun 19:23
Compare
Choose a tag to compare

What's Changed

  • color_func is back-compatible with sympy.plotting's
    line_color and surface_color.

Sympy Plot Backends v1.1.3

23 Jun 10:56
Compare
Choose a tag to compare

What's Changed

  • Added color_func support to parametric line series.
  • Improved docstring.

Sympy Plot Backends v1.1.2

16 Jun 09:56
Compare
Choose a tag to compare

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 with servable=True it will add a title to the interactive application.
  • Default settings:

    • Added servable and theme to interactive section.
  • 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 override n1 and n2.

  • 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

08 May 07:55
Compare
Choose a tag to compare

What's Changed

  • Added color_func keyword argument to:

    • plot to apply custom coloring to lines.
    • plot3d and plot3d_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 from plt.rcParams['axes.prop_cycle'].