Scatterplots between two numerical variables are great to see the relationship between them. Adding colors to the data points based on the third categorical variable is often useful in understanding the relationship among the three variables. In this post, we will learn how to … [Read more...] about How To Color Scatterplot by a variable in Matplotlib?
Matplotlib
How To Adjust Positions of Axis Labels in Matplotlib?
In this post, we will learn how to adjust positions of x-axis and y-axis labels in Matplotlib in Python. By default, plots with matplotlib places the axis labels in the middle. With matplotlib version 3.3.0, the matplotlib functions set_xlabel and set_ylabel have a new parameter … [Read more...] about How To Adjust Positions of Axis Labels in Matplotlib?
How To Place Legend Outside the Plot with Seaborn in Python?
While making plots with legend, like scatterplot, Seaborn has a nice feature that finds a suitable place for legend and puts it automatically inside the plot. This greatly helps in utilizing plotting area efficiently. However, sometimes you might want the legend outside the plot. … [Read more...] about How To Place Legend Outside the Plot with Seaborn in Python?
How to Show and Customize Mean Values in Seaborn Boxplots
Want to display both median and mean values in your boxplot visualizations? This comprehensive guide shows you exactly how to seaborn boxplot show mean using multiple methods, with ready-to-use Python code examples. Boxplots traditionally show median values, but displaying the … [Read more...] about How to Show and Customize Mean Values in Seaborn Boxplots
How To Annotate Bars in Barplot with Matplotlib in Python?
In this post we will learn examples of adding text, annotating bars in barplot using matplotlib. We will make bar plots using Seaborn's barplot and use Matplotlib to add annotations to the bars in barplot. Let us load Pandas, Seaborn and Matplotlib. Let us create a toy … [Read more...] about How To Annotate Bars in Barplot with Matplotlib in Python?




