Commit 064f80a2 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish matplotlib_tools.py.

parent 43264670
...@@ -33,7 +33,7 @@ def bicolor(df, color1, color2): ...@@ -33,7 +33,7 @@ def bicolor(df, color1, color2):
ncols, nrows = df.columns.size, df.index.size ncols, nrows = df.columns.size, df.index.size
colors = pd.DataFrame([[color1] * ncols] * nrows) colors = pd.DataFrame([[color1] * ncols] * nrows)
colors.iloc[range(1, nrows, 2)] = color2 colors.iloc[list(range(1, nrows, 2))] = color2
return colors.values return colors.values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment