Skip to content

Instantly share code, notes, and snippets.

@j03m
Created October 16, 2020 10:49
Show Gist options
  • Save j03m/5bf8e1fafefff7ecc886ec8e11639bf7 to your computer and use it in GitHub Desktop.
Save j03m/5bf8e1fafefff7ecc886ec8e11639bf7 to your computer and use it in GitHub Desktop.
plt matplotlib multiple y values single x axis with figure size
plt.figure(figsize=(50,50))
ax = plt.plot(df1['close'], color='b', label='close')
ax2 = plt.gca().twinx()
plt.plot(df1['HT_TRENDMODE'], color='r', label='close')
plt.legend()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment