Skip to content

Commit

Permalink
added minimum and maximum values
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwar authored and j042 committed Apr 8, 2024
1 parent 6960b97 commit 28cf752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion splinepy/io/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def _export_spline_field(spline, svg_element, box_min_x, box_max_y, **kwargs):
if kwargs.get("n_colors", None) is not None:
n_colors = kwargs.get("n_colors", None)
cmap_key = spline.show_options.get("cmap", "jet")
showable.cmap(cmap_key, n_colors=n_colors)
vmin = kwargs.get("vmin", spline.show_options.get("vmin", None))
vmax = kwargs.get("vmax", spline.show_options.get("vmax", None))
showable.cmap(cmap_key, vmin=vmin, vmax=vmax, n_colors=n_colors)

plotter.show(showable, zoom="tightest")

Expand Down

0 comments on commit 28cf752

Please sign in to comment.