Skip to content

Tag: seaborn

Export huge seaborn chart into pdf with multiple pages

I created a program which generates a large number of chart using seaborn catplot. This is the example of my code with the illustration of how the final chart looks like. However since the plot may extend up to more than 300 plots, when I tried to export to pdf, the size of the chart is too big and big

X-axis out of order seaborn histplot

I am trying to create a seaborn histplot and am almost done, however, I noticed that my x-axis is out of order. Displays: Adding order argument as shown here creates the following error(s): How can I force that order on my x-axis? Answer You could create a bar plot, using np.histogram to count how many values…

Change displot bar colors to a specific color

I am struggling to change my displot bar colours. I want to change the colour of the bars to the light blue colour on at the end of the palette (shown below). I have tried this, but the colour seems to remain as a dark blue, which is not what I want. How do I change the colours to a