by mitra mirshafiee
Last Updated August 01, 2020 10:19 AM - source

I'm trying to plot the values of a set of categories on a daily basis. The data is sorted based on the dates. But when I plot it with a seaborn line plot, it gets totally mixed up! (I added sort = False but didn't work)

Here is the code:

```
line1 = sns.lineplot(data = df_2, x = 'date', y = 'cost', hue = 'category',
sort = False, style="category", markers=True, dashes=False)
line1.set_xticklabels(df_2.date, rotation=90);
```

It looks like the line plot is trying to sort the date values by itself and since my dates are like '%m-%d', it sorts the values first based on the days and then months!

- Serverfault Help
- Superuser Help
- Ubuntu Help
- Webapps Help
- Webmasters Help
- Programmers Help
- Dba Help
- Drupal Help
- Wordpress Help
- Magento Help
- Joomla Help
- Android Help
- Apple Help
- Game Help
- Gaming Help
- Blender Help
- Ux Help
- Cooking Help
- Photo Help
- Stats Help
- Math Help
- Diy Help
- Gis Help
- Tex Help
- Meta Help
- Electronics Help
- Stackoverflow Help
- Bitcoin Help
- Ethereum Help