有时候,我们可能会遇到这样的报错:’A colormap named ‘BlueWhiteOrangeRed’ is already registered.’。这个错误提示的意思是,Matplotlib 已经注册了一个名为 ‘BlueWhiteOrangeRed’ 的 colormap,无法再次注册相同的名称。这个问题通常发生在以下几种情况: 重复导入相同名称的 colormap:如果你在代码中多次导入同一...
importternary## Boundary and Gridlinesscale=40figure,tax=ternary.figure(scale=scale)# Draw Boundary and Gridlinestax.boundary(linewidth=2.0)tax.gridlines(color="black",multiple=5)tax.gridlines(color="blue",multiple=1,linewidth=0.5)# Set Axis labels and Titlefontsize=20tax.set_title("Simplex ...
(x,y)曲线,color表示曲线颜色,alpha表示折线透明度(0-1),linestyle表示曲线样式,linewidth表示曲线宽度,marker表示曲线折点样式 l1 = plt.plot(x, y1, color='blue',alpha=0.5,linestyle='--',linewidth=2,marker='',label='y1') l2 = plt.plot(x, y2, color='black',alpha=0.5,linestyle='-',...
After electrophoresis, Coomassie blue staining was carried out for 2 h, after which an appropriate amount of decolorizing solution (40% ethanol 10% acetic acid) was added to the shaker to decolorize 3 to 5 times for 30 min each time. One hundred micrograms of protein solution per sample ...