import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('RdYlBu')
cm2 = plt.cm.get_cmap('RdYlBu_r') # RdYlBu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Accent')
cm2 = plt.cm.get_cmap('Accent_r') # Accent_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Blues')
cm2 = plt.cm.get_cmap('Blues_r') # Blues_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('BrBG')
cm2 = plt.cm.get_cmap('BrBG_r') # BrBG_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('BuGn')
cm2 = plt.cm.get_cmap('BuGn_r') # BuGn_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('BuPu')
cm2 = plt.cm.get_cmap('BuPu_r') # BuPu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('CMRmap')
cm2 = plt.cm.get_cmap('CMRmap_r') # CMRmap_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Dark2')
cm2 = plt.cm.get_cmap('Dark2_r') # Dark2_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('GnBu')
cm2 = plt.cm.get_cmap('GnBu_r') # GnBu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Greens')
cm2 = plt.cm.get_cmap('Greens_r') # Greens_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Greys')
cm2 = plt.cm.get_cmap('Greys_r') # Greens_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('OrRd')
cm2 = plt.cm.get_cmap('OrRd_r') # OrRd_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Oranges')
cm2 = plt.cm.get_cmap('Oranges_r') # Oranges_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PRGn')
cm2 = plt.cm.get_cmap('PRGn_r') # PRGn_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Paired')
cm2 = plt.cm.get_cmap('Paired_r') # Paired_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Pastel1')
cm2 = plt.cm.get_cmap('Pastel1_r') # Pastel1_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Pastel2')
cm2 = plt.cm.get_cmap('Pastel2_r') # Pastel2_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PiYG')
cm2 = plt.cm.get_cmap('PiYG_r') # PiYG_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PuBu')
cm2 = plt.cm.get_cmap('PuBu_r') # PuBu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PuBuGn')
cm2 = plt.cm.get_cmap('PuBuGn_r') # PuBuGn_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PuBu')
cm2 = plt.cm.get_cmap('PuBu_r') # PuBu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PuOr')
cm2 = plt.cm.get_cmap('PuOr_r') # PuOr_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('PuRd')
cm2 = plt.cm.get_cmap('PuRd_r') # PuRd_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Purples')
cm2 = plt.cm.get_cmap('Purples_r') # Purples_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('RdBu')
cm2 = plt.cm.get_cmap('RdBu_r') # RdBu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('RdGy')
cm2 = plt.cm.get_cmap('RdGy_r') # RdGy_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('RdPu')
cm2 = plt.cm.get_cmap('RdPu_r') # RdPu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('RdYlGn')
cm2 = plt.cm.get_cmap('RdYlGn_r') # RdYlGn_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Reds')
cm2 = plt.cm.get_cmap('Reds_r') # Reds_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Set1')
cm2 = plt.cm.get_cmap('Set1_r') # Set1_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Set2')
cm2 = plt.cm.get_cmap('Set2_r') # Set2_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Set3')
cm2 = plt.cm.get_cmap('Set3_r') # Set3_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Wistia')
cm2 = plt.cm.get_cmap('Wistia_r') # Wistia_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('Spectral')
cm2 = plt.cm.get_cmap('Spectral_r') # Spectral_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('YlGn')
cm2 = plt.cm.get_cmap('YlGn_r') # YlGn_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('YlGnBu')
cm2 = plt.cm.get_cmap('YlGnBu_r') # YlGnBu_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('YlOrBr')
cm2 = plt.cm.get_cmap('YlOrBr_r') # YlOrBr_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()
import matplotlib.pyplot as plt
import numpy as np
cm1 = plt.cm.get_cmap('YlOrRd')
cm2 = plt.cm.get_cmap('YlOrRd_r') # YlOrRd_r末尾加r表示颜色取反
x=np.random.randn(50)
y=np.random.randn(50)
plt.figure()
plt.subplot(1,2,1)
sc1=plt.scatter(x, y,c=x,cmap=cm1)
plt.colorbar(sc1)
plt.subplot(1,2,2)
sc2=plt.scatter(x, y,c=x,cmap=cm2)
plt.colorbar(sc2)
plt.show()