Skip to content

Commit ce327bc

Browse files
committed
update cm for mpl > 3.7
1 parent c986db9 commit ce327bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deeptools/cm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3131
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232

33-
from matplotlib import colors, cm as mpl_cm
33+
from matplotlib import colors, colormaps as mpl_cm
3434

3535

3636
_rocket_lut = [
@@ -1084,5 +1084,5 @@
10841084
_cmap_r = colors.ListedColormap(_lut[::-1], _name + "_r")
10851085
locals()[_name + "_r"] = _cmap_r
10861086

1087-
mpl_cm.register_cmap(_name, _cmap)
1088-
mpl_cm.register_cmap(_name + "_r", _cmap_r)
1087+
mpl_cm.register(_cmap, name=_name)
1088+
mpl_cm.register(_cmap_r, name=_name + "_r")

0 commit comments

Comments
 (0)