matplotlib에 두 개의 다른 커브를 플롯하려하지만 플롯 중 하나가 산산이 있어야하거나 점을 연결하는 선이 없어야합니다. 이 작업을 수행 할 여지가 있습니까? 지금, 내 플로팅 내 코드는 다음과 같습니다 그러나matplotlib에서 2 y 축에 산포를 사용합니다. [Python]
fig, ax1 = plt.subplots()
ax2 = ax1.twinx()
ax1.plot(epoch, list_of_gas, 'b')
ax2.plot(temp_times, temperatures, 'r')
ax1.set_ylabel('Pressure (torr)', color='b')
ax2.set_ylabel('Temperature (Celcius)', color='r')
ax1.set_title(folder + ' - ' + gas)
ax1.set_xlabel('time (seconds)')
ax1.set_xlim([0, 1000000])
ax2.set_ylim([0,425])
ax1.set_yscale('log')
ax1.set_ylim([ymin,ymax])
plt.show()
, 나는 ax1.scatter (시대, list_of_gas, 'B')를 원하지만 당신은 2 개 축과 분산을 사용할 수 없습니다. 누구든지이 문제를 해결할 방법을 알고 있습니까? 점들을 연결하는 선을 제거하는 것처럼? 언급 한 바와 같이, = '없음'ls='none', or the longer
이는 linestyle :