diff --git a/docs/changes.md b/docs/changes.md index 1007dc6d..21e4814f 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,39 +1,2 @@ ## Main changes -- added `plotter.pick_area()` thanks to @ZiguoAtGitHub and @RubendeBruin feedback. -- bug fix in `closest_point()` thanks to @goncalo-pt -- bug fix in tformat thanks to @JohnsWor https://github.com/marcomusy/vedo/pull/913 -- add texture to npz files thanks to @zhouzq-thu https://github.com/marcomusy/vedo/pull/918 - -- Fix meshlab interface thanks to @JeffreyWardman in #924 -- Update `Slicer3DPlotter` thanks to @daniel-a-diaz in #925 -- Improvements on `applications.Slicer3DPlotter` -- Improvements on `applications.Browser` -- add background radial gradients - - -### Breaking changes -- in `plotter.add_button(func)`, must use `func(event)` instead of `func()` -(thanks to @smoothumut for spotting the bug) - - -------------------------- -## New/Revised Examples -``` -examples/advanced/timer_callback1.py -examples/advanced/timer_callback2.py -examples/advanced/interpolate_scalar5.py -examples/basic/buttons.py -examples/basic/mouseclick2.py -examples/basic/input_box.py -examples/basic/sliders2.py -examples/basic/interaction_modes2.py -examples/volumetric/slicer1.py -``` - -### Broken Examples -``` -``` - - - diff --git a/vedo/colors.py b/vedo/colors.py index 5eb534f8..56e9e7e1 100644 --- a/vedo/colors.py +++ b/vedo/colors.py @@ -33,7 +33,8 @@ try: - import matplotlib.cm as _cm_mpl + # import matplotlib.cm as _cm_mpl + import matplotlib _has_matplotlib = True cmaps = {} except ModuleNotFoundError: @@ -901,7 +902,8 @@ def color_map(value, name="jet", vmin=None, vmax=None): if _has_matplotlib: # matplotlib is available, use it! ########################### if isinstance(name, str): - mp = _cm_mpl.get_cmap(name=name) + # mp = _cm_mpl.get_cmap(name=name) + mp = matplotlib.colormaps[name] else: mp = name # assume matplotlib.colors.LinearSegmentedColormap result = mp(values)[:, [0, 1, 2]] diff --git a/vedo/version.py b/vedo/version.py index 90b93869..60a44219 100644 --- a/vedo/version.py +++ b/vedo/version.py @@ -1 +1 @@ -_version = '2023.4.6+dev16' +_version = '2023.4.7'