Skip to main content
1 vote
1 answer
2k views

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

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

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? 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

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

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

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

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

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

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

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

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

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

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

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="...

15 30 50 per page
1
2 3 4 5
652