Skip to content

Commit

Permalink
Change the formatting options
Browse files Browse the repository at this point in the history
  • Loading branch information
asrhou authored Apr 13, 2021
1 parent 5d54159 commit f35f677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VisInteractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def DrawDeltaHeatmap(readmeStr, typeStr, numStr, tempM1, tempM2, tempMD, tempMF,
f, ax = plt.subplots(figsize=(figWidth, figWidth))
if numStr == 'int':
if tempM1.max().max() < 500:
g = sns.heatmap(tempM1, square=True, annot=True, fmt="d", linewidths=.5, ax=ax, cmap=RdOnly)
g = sns.heatmap(tempM1, square=True, annot=True, fmt=".0f", linewidths=.5, ax=ax, cmap=RdOnly)
else:
g = sns.heatmap(tempM1, square=True, annot=False, linewidths=.5, ax=ax, cmap=RdOnly)
else:
Expand All @@ -323,7 +323,7 @@ def DrawDeltaHeatmap(readmeStr, typeStr, numStr, tempM1, tempM2, tempMD, tempMF,
f, ax = plt.subplots(figsize=(figWidth, figWidth))
if numStr == 'int':
if tempM2.max().max() < 500:
g = sns.heatmap(tempM2, square=True, annot=True, fmt="d", linewidths=.5, ax=ax, cmap=BuOnly)
g = sns.heatmap(tempM2, square=True, annot=True, fmt=".0f", linewidths=.5, ax=ax, cmap=BuOnly)
else:
g = sns.heatmap(tempM2, square=True, annot=False, linewidths=.5, ax=ax, cmap=BuOnly)
else:
Expand Down Expand Up @@ -853,7 +853,7 @@ def DrawHeatmap(readmeStr, typeStr, numStr, tempM, dataType, resultDir, plotWidt
f, ax = plt.subplots(figsize=(max(tempM.shape), max(tempM.shape)))
if numStr == 'int':
if tempM.max().max() < 100:
g = sns.heatmap(tempM.astype(int), square=True, annot=True, fmt="d", linewidths=.5, ax=ax, cmap=cmap)
g = sns.heatmap(tempM.astype(int), square=True, annot=True, fmt=".0f", linewidths=.5, ax=ax, cmap=cmap)
else:
g = sns.heatmap(tempM.astype(int), square=True, annot=False, linewidths=.5, ax=ax, cmap=cmap)
else:
Expand Down

0 comments on commit f35f677

Please sign in to comment.