Questions tagged [relplot]

This is for seaborn relplot, which is a figure-level plot for scatter and line plots. When using this tag, also use the python and seaborn tags.

26 questions
1
vote
2 answers

How to show scientific notation

I have a seaborn relplot. I want to show scientific notation. Presently the image takes large space on x and y ticks. I want to minimize it by converting the axis to scientific notation. My code: sns.relplot(x='Vmpp',y='cVmpp',data=cdf) My…
Mainland
  • 4,110
  • 3
  • 25
  • 56
1
vote
1 answer

How to plot wide format dataframe with seaborn.relplot

I am trying to plot the following line graph with dummy data on 5 cities(C1-C5). Based on what I understand, x="Year", y="Number of Employees" and hue="City". How would I set up the code for it? I have tried doing it in the following manner, but…
Tachi
  • 13
  • 3
1
vote
2 answers

Plotting multiple subplots, each showing relation between two columns of a pandas DataFrame using Seaborn

I have a pandas DataFrame as follows: df=pd.DataFrame({'depth':[499,500,501,502,503],'parameter1':[25,29,24,23,25],'parameter2':[72,80,65,64,77]}) I wish to plot multiple (two in this case) seaborn lineplots under the same graph, as subplots. I want…
0
votes
0 answers

How can I draw the y-axis on both sides of a sns.relplot?

relplot/lineplot I like to have the y-axis also on the right hand side, to be able to see which values are reached at the end of the time series. I do not want a new y-axis, just the same one on both sides of a relplot. Is there any easy…
0
votes
1 answer

How can I plot a line with markers for separate categories in a relplot?

Using Seaborn I would like to plot both SBP and DBP columns as below. To achieve this, I use: plt.style.use('ggplot') g = sns.relplot(data=r_29, x="DATE_TIME", y="SBP", col="VISIT", col_wrap=2, facet_kws={'sharey': False, 'sharex': False},…
0
votes
1 answer

How to replace the legend from Relplot

I'm having trouble removing the original legend from Relplot. Since I want to change the text in the legend, I added some code to override the legend and now I want to get rid of the original one. However I can't write legend = False since, if so,…
Yunni
  • 15
  • 2
0
votes
1 answer

How to add margin titles to a relplot

Seaborn's FacetGrid has a margin_titles kwarg, and its effect is shown in the documentation e.g. How do I similarly add margin titles when using Seaborn's relplot?
Rylan Schaeffer
  • 1,945
  • 2
  • 28
  • 50
0
votes
1 answer

FacetGrid returned seaborn's relplot does not respect hue

I am encountering a problem in which seaborn's relplot function creates a FacetGrid that is different from creating the FacetGrid manually. I find this unintuitive and would like the relplot function to give me a FacetGrid that behaves similarly to…
WodkaRHR
  • 165
  • 3
  • 10
0
votes
1 answer

Plot Multiple Y axis + 'hue' scatterplot

Dataframe df Sample Type y1 y2 y3 y4 S1 H 1000 135 220 171 S2 H 2900 1560 890 194 S3 P 678 350 127 255 S4 P 179 510 154 275 I want to plot y1, y2, y3, y4 vs Sample scatterplot with hue as Type. Is…
Snehal
  • 1
  • 1
  • 3
-1
votes
1 answer

ValueError: Could not interpret value for parameter

load "bmi.csv" into the Dataframe and create a scatter plot of the data using relplot() with height on x-axis and weight on y-axis and color the plot points based on Gender and vary the size of the points by BMI index. My code is: import pandas as…
Albert
  • 1
  • 1
  • 2
-1
votes
1 answer

Seaborn relplot() doesn't load graph

Hadn't messed with Seaborn in a while, so I was refreshing some basic concepts and came across this. When I load a basic plot using replot(), the graph doesn't load. It stops short from actually opening. However, if I use a scatterplot() instead, it…
PythonNoob
  • 93
  • 9
1
2