Skip to content

Commit

Permalink
plotData
Browse files Browse the repository at this point in the history
  • Loading branch information
untzag committed Aug 8, 2017
1 parent 8bb0f9a commit 4ace5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WrightTools/artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ def plot(self, channel_index=0, xlim=None, ylim=None,

if xlim:
plt.xlim(xlim[0], xlim[1])
for axis, xi, zi in [[self.ax1, xi, zi], [self.ax2, plotData[0], plotData[1]]]:
for axis, xi, zi in [[self.ax1, xi, zi], [self.ax2, xi2, diff]]:
min_index = np.argmin(abs(xi - min(xlim)))
max_index = np.argmin(abs(xi - max(xlim)))
zi_truncated = zi[min_index:max_index]
Expand Down

0 comments on commit 4ace5f7

Please sign in to comment.