简体   繁体   中英

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.

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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM