私はhistogram2dで遊んでいますが、カラーバーの対数値を取り入れようとしています。 import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from matplotlib.colors import LinearSegmentedColormap
cmap = LinearSegme
matplotlibカラーバーの現在表示されているティックをリストとして抽出するにはどうすればよいですか? cb=plt.colorbar()
for t in cb.ax.get_yticklabels(): print(t.get_text())
それとも ticks = [float(t.get_text().replace('−','-')) for t in cb.ax.get_y
MATLAB2017aでは、contourfを使用してカラーバーティックを手動で指定すると、終了チックが表示されません。 エンドティックは、輪郭行列の最大値に対応します。 S = floor(rand(20)*20)+1;
maxS = max(max(S)); %S is an integer matrix obtained from the previous code
tickStep =