Skip to content

Commit

Permalink
minor tweak in the y range of plots
Browse files Browse the repository at this point in the history
  • Loading branch information
delaere committed Aug 5, 2014
1 parent e45c89c commit a71ed18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AaptosPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def main_live(bufferDepth, pollingTime):
currentPlot.set_data(t,c)
# update view
ax = plt.subplot(len(status),2,index*2+1) # voltage
plt.ylim((np.amin(v),np.amax(v)))
plt.ylim((np.amin(v)-0.1*abs(np.amin(v)-np.amax(v)),np.amax(v)+0.1*abs(np.amin(v)-np.amax(v))))
plt.xlim((np.amin(t),np.amax(t)))
ax = plt.subplot(len(status),2,index*2+2) # current
plt.ylim((np.amin(c),np.amax(c)))
plt.ylim((np.amin(c)-0.1*abs(np.amin(c)-np.amax(c)),np.amax(c)+0.1*abs(np.amin(c)-np.amax(c))))
plt.xlim((np.amin(t),np.amax(t)))
plt.draw()
plt.pause(pollingTime)
Expand Down

0 comments on commit a71ed18

Please sign in to comment.