update matplotlib cmap import

This commit is contained in:
Martin Bubel 2024-05-19 20:23:26 +02:00
parent e1fa04bb04
commit b4041cf713

View file

@ -28,7 +28,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# =============================================================================== # ===============================================================================
from matplotlib import cm from matplotlib import pyplot
from .. import Tango from .. import Tango
""" """
@ -45,7 +45,7 @@ it gives back an empty default, when defaults are not defined.
# Data plots: # Data plots:
data_1d = dict(lw=1.5, marker="x", color="k") data_1d = dict(lw=1.5, marker="x", color="k")
data_2d = dict( data_2d = dict(
s=35, edgecolors="none", linewidth=0.0, cmap=cm.get_cmap("hot"), alpha=0.5 s=35, edgecolors="none", linewidth=0.0, cmap=pyplot.get_cmap("hot"), alpha=0.5
) )
inducing_1d = dict(lw=0, s=500, color=Tango.colorsHex["darkRed"]) inducing_1d = dict(lw=0, s=500, color=Tango.colorsHex["darkRed"])
inducing_2d = dict( inducing_2d = dict(