df.plot.scatter 如何更改第二个 yaxis 的大小?
df.plot.scatter how can I change the size of the second yaxis?
这是我的 python 代码:
fig, ax1 = plt.subplots(figsize=(15,10))
ax1.tick_params(axis='both', labelsize=18)
test.plot.scatter(x='USFM Durchfluß korrigiert', y='Ausgangsdruck', c='Dichte', ax = ax1, colormap="viridis")
ax1.set_xlabel('Durchfluss [m^3/h]', fontsize=18)
ax1.set_ylabel('Ausgangsdruck [bar]', fontsize=18)
我想要 "Dichte" 与另一个轴的尺寸相同:
尝试设置 matplotlib.pyplot
的一般字体大小和刻度的字体大小等于:
import matplotlib as mpl
import matplotlib.pyplot as plt
plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)
这是我的 python 代码:
fig, ax1 = plt.subplots(figsize=(15,10))
ax1.tick_params(axis='both', labelsize=18)
test.plot.scatter(x='USFM Durchfluß korrigiert', y='Ausgangsdruck', c='Dichte', ax = ax1, colormap="viridis")
ax1.set_xlabel('Durchfluss [m^3/h]', fontsize=18)
ax1.set_ylabel('Ausgangsdruck [bar]', fontsize=18)
我想要 "Dichte" 与另一个轴的尺寸相同:
尝试设置 matplotlib.pyplot
的一般字体大小和刻度的字体大小等于:
import matplotlib as mpl
import matplotlib.pyplot as plt
plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)