Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seaborn Catplot: Show line plot

The catplot function has an option called kind. It allows me to specify 'bar', 'point' etc. I am looking for a line plot. I am using catplot to show two categories side by side, using the same time scale,plotting sales from two different products. The goal is to show the two trends side by side.

like image 314
pythOnometrist Avatar asked Sep 02 '25 02:09

pythOnometrist


1 Answers

catplot, as the name implies, is meant to be used by categorical data (ie data where 2 or more categories would be shown on the x-axis), not continuous data (such as a time series in your case).

I think you are looking for sns.relplot() with kind='line'

like image 198
Diziet Asahi Avatar answered Sep 05 '25 21:09

Diziet Asahi