Skip to content

Commit

Permalink
initialize new marks with 0 for new samples in bar plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Feb 19, 2019
1 parent 1d79748 commit 2a080c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion straditize/straditizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,8 @@ def _new_mark(pos, artists=[]):

def new_mark(pos):
return [_new_mark(
[np.array(starts + full_df.loc[np.round(pos[-1] - ylim[0])]),
[np.array(starts +
full_df.loc[np.round(pos[-1] - ylim[0])].fillna(0)),
np.round(pos[-1])])]

def new_mark_and_range(key, row, row_indices):
Expand Down

0 comments on commit 2a080c7

Please sign in to comment.