Skip to content

Tag: matplotlib

Changing font style in seaborn clustermaps

I am using the clustermap method in the seaborn library and I would like to have the axis labels printed in italics. I don’t think that seaborn allows me to specify the font style, so my question is, is there some way to encode italic font style into the label string? I have tried this, [r’$it{&#8…

Python – Reduce the plot axis size

I want to reduce the axis size of this diagram that I have plotted. As you see the (0.7 ; 1.0) part is useless on both axis and I want to remove them so the diagram is well centered and takes all the plot. Here is the part of my code for the plotting : Thank you ! Answer

How to replace pandas plot xticks with days?

I’ve got a pandas hist plot like shown below. As you can see the xticks are currently set to 0-6 (Sunday – Saturday). I’d like to replace the tick label to the actual days so the days are showing instead of numbers. 0 – Sunday 1 – Monday 2 – Tuesday 3 – Wednesday . . …

Add title to each grid with ImageGrid

I’m using matplotlib’s mpl_toolkits.axes_grid1.ImageGrid to generate two grids, each size (3,3): I’m trying to figure out how to add a title to each ImageGrid, so that there would be two titles, one for the left 3×3 grid, and one for the right one. It seems like this should be pretty st…

Surface plot for the profile

I am trying to plot the surface profile but I am getting this only. I don’t know why it’s not plotting the surface profile. Where is the mistake? Where am I going wrong ? I have already mentioned all the axes but all I am getting is the above figure. Can anybody help in figuring it out? Answer You…