I’m plotting some data using sns.jointplot and I want the data inside the scatterplot to remain as points and the histograms on the side to be kde plots instead. I’ve tried using the kind=’kde’ argument, but this changes the data inside to not look like points in a scatterplot anymore. I’ve searched around for a bit and can’t find how.
Tag: seaborn
Seaborn, how sum time in barplot?
pandas output: and on python: i am trying do barplot in seaborn, but i get error numeric. How use sum time value in barplot seaborn? Answer You need to convert value series to a numeric data type to plot it. For example, assuming that value has a timedelta dtype. You can create another column in your dataframe.
How do I animate this graph to just display the next row
enter image description here So I tried this, I’m working in a jupyter notebook and am wondering how to animate the next row of data. Answer For what I can see in the documentation you have to set the plot data inside the animate function. You must also have an instance to your plot and use that same instance inside
How to define breaks of the bins for log scale in Seaborn
Consider the following minimal working example: The minimal working example above will produce Now, let’s use our own breaks of the bins: I expected to produce a histogram similar to the one before but I’m getting What am I doing wrongly? Or is this a bug with Seaborn 0.11.2? Answer Apparently, you have to give the bins on the log
Draw longest possible vertical line between two curves in seaborn
I currently have a plot like this (consider that data is the dataframe I pasted at the very bottom): Which produces: Now, I want to know how can I annotate a line in this plot, such that it is located between the curves, at the x-Axis value where the distance between curves are maximized. I would also need to annotate
Adding custom arrows with labels in seaborn relplot or a facetgrid
I am trying to add two custom arrows with labels in a seaborn relplot graph. I tried using the matplot arrow function which is not working because the seaborne relplot is a “facetgrid”. I did not see a specific arrow pointer function in seaborn docu. I want to draw an arrow at a specific x value between the y values
How to change the number of size categories in seaborn scatterplot
I tried hard to look through all the documentation and examples but I am not able to figure it out. How do I change the number of categories = the number of size bubbles, and their boundaries in seaborn scatterplot? The sizes parameter doesn’t help here. It always gives me 6 of them regardless of what I try (here 8,
Animation issue in Python
I want the green rectangle to not disappear as it moves from one value to another in matrix b. For example, the rectangle is around 0.24671953. Then the rectangle stays on this value. Then another rectangle appears onto the next value which is 0.25959473. Then another rectangle appears on 0.41092171, with the previous two rectangles not disappearing. Answer It looks
Plotting several boxplots from different dataframes in one graph
I’m trying to plot several boxplots from different dataframes in one graph. Each dataframe has a different length. What I’m doing is the folowing: However, the output of doing that is that all boxplots are ploted one over the other and it’s not possible to distinguish anything. Can you help me with this? Regards Answer You could create a new
Plot confidence interval of a duration series
I measured the duration of 6000 requests. I got now an Array of 6000 elements. Each element represents the duration of a connection request in milliseconds. [3,2,2,3,4,2,2,4,2,3,3,4,2,4,4,3,3,3,4,3,2,3,5,5,2,4,4,2,2,2,3,5,3,2,2,3,3,3,5,4……..] I want to plot the confidence interval in Python and in a clearly arranged manner. Do you have any Idea how I should plot them? Answer From what I understood this code should