Skip to content

Instantly share code, notes, and snippets.

@sadimanna
Last active August 1, 2020 14:29
Show Gist options
  • Select an option

  • Save sadimanna/aea2faec71a92cd51376a4b28cf07f88 to your computer and use it in GitHub Desktop.

Select an option

Save sadimanna/aea2faec71a92cd51376a4b28cf07f88 to your computer and use it in GitHub Desktop.
fig,ax = plt.subplots(figsize=(10,10))
ax.plot(y,datapts.T)
ax.plot(y,datapts.T,'yo')
ax.legend(xlabs,title='CURRENT (A)', loc='upper right')
ax.set_xlabel('RESISTANCE (OHM)')
ax.set_ylabel('VOLTAGE (V)')
ax.set_xticks(ticks=y)
ax.set_xticklabels(labels=ylabs)
ax.set_xlim([5,30])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment