9,772 questions
1
vote
1
answer
2k
views
Seaborn - ytickabels are cut off [duplicate]
I have the following code to create a heatmap with seaborn!
Unfortunately, my y-ticklabels are long names, and are cut off from the figure as shown in the attached screenshot.
seasons = ['yearly','djf'...
6
votes
0
answers
2k
views
Seaborn bivariate KDE speed-up
I am estimating a Gaussian bivariate KDE of positions data (x and y coordinates), and I use sns.kdeplot for this. While it works correctly (i.e. I get the plot I get), it is pretty slow for the amount ...
1
vote
2
answers
9k
views
How to sort a heatmap to show highest correlations together?
I'm trying to create a heatmap to show relationships between how many times Customers use reports, using the Count column as the values within the Heatmap Customers can use several templates as many ...
0
votes
1
answer
187
views
How can I make this plot using Seaborn or matplotlib?
How can I make this plot using Seaborn or matplotlib? A key requirement is that the plot code be less than about 10 lines (this code is meant to go in a book and should not require a PhD in matplotlib)...
1
vote
2
answers
8k
views
Wrap text in seaborn barplot x-axis python
I'm trying to plot a dataframe and I want the x-axis labels to not override each other like here
When dealing with one plot, adding .set_xticklabels(rotation=30) does solve the issue:
sns.catplot(...
3
votes
1
answer
84
views
broken x axis and broken dual y-axes - draw replot across subplots
My post relates to this one here:
Formatting a broken y axis in python matplotlib
I have borrowed code from this post and adapted it to what I am doing.
I am attempting to create a graph whereby I am ...
4
votes
1
answer
117
views
alignment of seaborn boxplot and stripplot in two different figures with set box width
I have a dataset for simulated and experimental values for different categories (temperatures, design). I want to create two figures to compare simulated and experimental values for 1.) temperature (...
3
votes
1
answer
108
views
Seaborn split violin plot with multiple hue categories but on one single axis
I am in the process of migrating code and workflows from R-tidyverse/ggplot2 to Python and I'm trying to replicate something that worked for me in R. My challenge in this case is working with split ...
0
votes
2
answers
7k
views
How to show the X-axis date ticks neatly or in a form of certain interval in a plotly chart
I am making an OHLC graph using plotly. I have stumbled across one issue. The labels in the x-axis is looking really messy . Is there a way to make it more neat. Or can we only show the extreme date ...
2
votes
1
answer
15k
views
Overlaying box plot and line plot seaborn
I am trying to overlay a box plot (series of box plot based on another variable) and a line plot of medians of that variable, on the same box plot. A simple code like below works perfectly fine.
...
2
votes
0
answers
53
views
What is wrong with my PIL looped image paste?
I have script that loops over a set of json color themes, uses seaborn and matplotlib to generate a labeled swatch and then saves it to a buffer. I want to paste the buffer into a new PIL.Image but ...
0
votes
2
answers
158
views
Data visualization with clear bars on a histogram?
I am making a histogram where all the bars are overlapped, but even with the transparency lowered for the bars, it still looks like a mess to me. I thought if I could make the bars themselves ...
0
votes
2
answers
1k
views
How to scale histogram bar heights in matplotlib / seaborn?
My dataset is a numpy array of size (m, 1) and I need 2 plots: a) one of the whole data normalized (probability) b) one of a subset of the dataset keeping the same normalization as before.
The problem ...
4
votes
1
answer
9k
views
How to remove legend in lmplot function of seaborn?
In seaborn lmplot function we have hue argument that will automatically draw a colorbar on the right side. How can I disable/remove the colorbar?
Here are a sample code that will generate a colorbar
...
3
votes
2
answers
98
views
Seaborn plot with lines inbetween pairs of data points showing value differences
I have the following plot made with Python seaborn:
The plot I have:
Obtained by this piece of code:
plot = sns.scatterplot(data=by_sent_type, s=50)
plot.set(xlabel="pair", ylabel="...