Skip to content

Commit

Permalink
do not replace occurences_value in xaxis-tranlation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Jan 28, 2019
1 parent 6c5eb50 commit b2f8b2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion straditize/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,8 @@ def px2data_x(self, coord):
diff_data = np.diff(x_data)[0]
slope = diff_data / diff_px
intercept = x_data[0] - slope * x_px[0]
return intercept + slope * coord
return np.where(coord == self.occurences_value, self.occurences_value,
intercept + slope * coord)

@docstrings.get_sectionsf('DataReader._plot_df')
def _plot_df(self, df, ax=None, *args, **kwargs):
Expand Down

0 comments on commit b2f8b2c

Please sign in to comment.