Skip to content

Commit

Permalink
version 2023.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Nov 15, 2023
1 parent ee308a1 commit 5376657
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 40 deletions.
37 changes: 0 additions & 37 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -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
```
```



6 changes: 4 additions & 2 deletions vedo/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion vedo/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_version = '2023.4.6+dev16'
_version = '2023.4.7'

0 comments on commit 5376657

Please sign in to comment.