All Questions
5
questions
1
vote
1
answer
200
views
Combine catplot legend with other legends in seaborn
I want to combine multiple plot legends with a catplot legend and place the single result in the upper right. I also want to replace the labels on both. Examples - {"avg tip":"average&...
0
votes
1
answer
60
views
Unable to visualize legend correctly in matplotlib
I am trying to visualize this graph with a lineplot, but the legend is not working correctly as you can see in the image below.
The problems are three:
two rectangles appear in the second and fourth ...
1
vote
1
answer
284
views
I want to make an automatic legend in seaborn, but it doesn't work
I want to make an automatic legend in seaborn, but it doesn't work. How can I generate the legend automatically?
plt.figure(figsize=(15, 10))
sns.pointplot(data=tmp_hs_df, x="Geographic Area", y="...
0
votes
2
answers
1k
views
How to change the location of a legend in seaborn countplot? [duplicate]
There is the following code which produces a countplot with seaborn and annotating the precentage:
ax = sns.countplot(y=target_column, data=data, hue=target_column)
plt.title(f'Distribution of {...
0
votes
0
answers
50
views
How to add a legend to this histogram?
I created a histogram:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
% matplotlib inline
#import csv
df = pd.read_csv('tmdb-movies.csv')
df_star_wars ...