Skip to content

Commit

Permalink
fix bug when creating the its2 type profile legend with exactly x % 5…
Browse files Browse the repository at this point in the history
… types
  • Loading branch information
didillysquat committed Nov 22, 2018
1 parent 3abfa03 commit ecfc427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ def generate_stacked_bar_data_submission(path_to_tab_delim_count, output_directo
if len(ordered_list_of_seqs) < num_leg_cells:
if len(ordered_list_of_seqs) % max_n_cols != 0:
n_rows = int(len(ordered_list_of_seqs) / max_n_cols) + 1
last_row_len = len(ordered_list_of_seqs) % max_n_cols
else:
n_rows = int(len(ordered_list_of_seqs) / max_n_cols)
last_row_len = len(ordered_list_of_seqs) % max_n_cols
last_row_len = max_n_cols
else:
n_rows = max_n_rows
last_row_len = max_n_cols
Expand Down

0 comments on commit ecfc427

Please sign in to comment.