Created
April 7, 2020 18:28
-
-
Save uysalserkan/e63477f602069a6f709e9376fe5f077e to your computer and use it in GitHub Desktop.
Electronic Report 2 Plot Codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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