"None-None" at bottom of a heatmap
See original GitHub issueHeatmap places None-None at bottom and I have no idea how to get rid of it:
Versions:
- python 2.7
- seaborn - latest for 2.7
Code:
plt.figure(figsize=fig_size)
ax = plt.gca()
ax.set_title('Monthly returns, %', fontweight='bold')
heatmap(returns, xticklabels=[i[1] for i in list(returns.columns)], annot=True, fmt='0.3f', annot_kws={'size': 8}, alpha=1.0, center=0.0, cbar=False, cmap=cm.RdYlGn, ax=ax, robust=True)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Chapter 2 A Single Heatmap | ComplexHeatmap Complete ...
If it is set to "none" , the clustering is still applied but nothing in drawn on the heatmap body. The customized graphics...
Read more >Heatmap in R: Static and Interactive Visualization - Datanovia
heatmap () [R base function, stats package]: Draws a simple heatmap ... R base heatmap: heatmap() ... Allowed values are in c(“row”, “column”,...
Read more >heatmap: Draw a Heat Map - RDocumentation
A heat map is a false color image (basically image(t(x)) ) with a dendrogram ... and scaled in either the row direction or...
Read more >Centering color key at bottom of heatmap - Stack Overflow
My aim is to generate a heatmap with no extra space between plot area and heatmap (excluding the key at the bottom). By...
Read more >Draw a Heat Map - R
A heat map is a false color image (basically image(t(x)) ) with a dendrogram ... and scaled in either the row direction or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is an
xlabel
, which is derived from the name(s) of the column index on your dataframe. Your transformations are producing a multiindex dataframe where none of the levels have names. No label is generated for an unnamed single index (because matplotlib ignoresNone
) but that is not the case for multiindices. Your options areax.set_xlabel(None)
.Yep,
ax.set_xlabel('')
effectively removes it. Thank you!!