Skip to content

Instantly share code, notes, and snippets.

@uysalserkan
Created April 7, 2020 18:28
Show Gist options
  • Save uysalserkan/e63477f602069a6f709e9376fe5f077e to your computer and use it in GitHub Desktop.
Save uysalserkan/e63477f602069a6f709e9376fe5f077e to your computer and use it in GitHub Desktop.
Electronic Report 2 Plot Codes
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
cur_vol = {"Voltage": [0, 0.233182, 0.54725, 1.0225, 1.555, 5.63033, 10.67], "Current": [
0, 0.0000100, 0.000100, 0.000500, 0.001000, 0.005000, 0.010000]}
data = pd.DataFrame(cur_vol)
plt.plot(data.Voltage, data.Current)
plt.scatter(data.Voltage, data.Current)
plt.xticks(data.Voltage)
plt.yticks(data.Current)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment