Questions tagged [seaborn]
Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. Add the seaborn-0.12.x tag for questions about seaborn.objects.
seaborn
9,707
questions
0
votes
0
answers
6
views
Python seaborn kdeplot - how to use background image
I have been recording the xy cordinates of the ball bounce location on a tennis serve. I am just using this data to play around with different visualisations, and keen to try a heatmap using seaborn (...
-1
votes
0
answers
23
views
Create gradient-fill plot in Python (using seaborn / plotly / bokeh / matplotlib?) [closed]
I need to create an plot like this in Python. I don't really care what library to use (seaborn / plotly / bokeh / matplotlib?), but the goal is to replicate the green-yellow-red gradient fill. The ...
0
votes
0
answers
24
views
Plotting a bar graph using seaborn with hue, how to get bar labels as percentage values [duplicate]
I have the following data set(df):
source_city class price
0 Bangalore Business 53671.856898
1 Bangalore Economy 6526.294410
2 Chennai Business 54036.749819
3 ...
0
votes
1
answer
23
views
Setting the y-axis range for Seaborn/Matplotlib countplot to a specified range above/below the max and min data points
I am doing EDA for a machine learning project and am plotting a grid of countplots with Seaborn. In the visualization, the difference in height of the bars in each subplot is almost indiscernible as ...
0
votes
1
answer
43
views
Change y axis scaling on a Seaborn Heatmap
I am at the final stage of displaying a heatmap within a facetgrid. When I am presenting the data, some of the index values may or may not be present for the row / column combination. I would like to ...
-2
votes
1
answer
32
views
In jupyter notebok title of graph not showing.Why no title is there in the graph? [duplicate]
this is set of codes i ran
here is the graph,see everything is fine
this is the 2nd set of codes i ran, in the imaage u can see there is no title
i was trying to plot a count graph,i wrote the code ...
0
votes
0
answers
20
views
Setting title in displot for each subplot
I want to set the title of each graph to be the crop type and the interval it is looking at.
# Load the CSV files
df_corn = pd.read_csv(r"D:\Final Prep\Everything\WUVR_corn.csv")
df_soy = ...
0
votes
1
answer
49
views
Change color for displot based on column
I have a displot: I want the data for Corn to be a different color (say Red and Green) and the data for soy to be (Orange and Blue)
df_melted = {'Sink_ID': ['100012_HUC8_09020204', '...
2
votes
1
answer
36
views
Using map_dataframe in a FacetGrid
Thanks in advance for your help with my query. I would like to generate 4 heatmaps, the specialty is the row and colnum indicates the column in the facetgrid. Each heatmap should reflect the specialty ...
-1
votes
0
answers
30
views
Easiest way to overlay an existing histplot with a theoretical lognormal PDF in Python
I have data in a series df that I'd like to visually assess (via simple plotting and hist/displot in Seaborn).
I have the below so far but wonder what is the easiest way to add a lognormal pdf for ...
-3
votes
0
answers
13
views
Different Result In t-SNE [closed]
can anyone help me answer my question ?
so i get dataset from paper and visualize with t-SNE. in other hand im trying to create new dataset with following the previous dataset feature. But after i ...
0
votes
1
answer
33
views
How to avoid plotting a box when number of abservations is too low with seaborn boxplot?
I'm using seaborn boxplot to plot a bunch of boxes representing some errors when varying a variable that ranges from 0 to 30. When that variable is low, like 0, 1 or 2, I have a lot of observations to ...
-1
votes
0
answers
17
views
Swap Axes of Violin plot Python [duplicate]
I am trying to create a violin plot in seaborn and would like to have the axis revert.
The full code for plotting violin is here 1. For me it would be more useful if I could swap the violin ...
-1
votes
1
answer
47
views
show scale legend of 2D histplot
I want to add a color scale legend to a 2D seaborn dist plot that shows the frequency range of the color scale. An example is mocked up here in ms paint:
I have looked around and seen many methods to ...
0
votes
0
answers
28
views
Residual plot errors on top of errors
I am using python and trying to create a residual plot of my data. Yesterday it worked today everything I try is giving an error message.
This works fine:
#Reduced OLS model
medical_df['intercept']=1
...