Skip to content

Commit

Permalink
update cm for mpl > 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
WardDeb committed Aug 16, 2023
1 parent c986db9 commit ce327bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deeptools/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from matplotlib import colors, cm as mpl_cm
from matplotlib import colors, colormaps as mpl_cm


_rocket_lut = [
Expand Down Expand Up @@ -1084,5 +1084,5 @@
_cmap_r = colors.ListedColormap(_lut[::-1], _name + "_r")
locals()[_name + "_r"] = _cmap_r

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

0 comments on commit ce327bc

Please sign in to comment.