pythOnometrist
pythOnometrist

Reputation: 6809

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.

Upvotes: 4

Views: 8816

Answers (1)

Diziet Asahi
Diziet Asahi

Reputation: 40697

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'

Upvotes: 9

Related Questions