Comments (5)
Try calling df.reset_index(), even just in the line where you pass it to tsplot
?
from seaborn.
OK the solution will have to be doing something like this
(Or not calling pivot
and doing something else when unit
is None)
from seaborn.
So, I got it to work following your instructions.
See the notebook for the gory details.
Essentially the issues were.
- needed to pass
parse_dates=True
when importing the csv as apparently the time index needs to be datetime objects, not opaque strings that sort in date order. - all the pivot jazz to get things lined up correctly.
It seems counterintuitive to me that you have to reorder the table if you have a temporal index, but I'm sure you have your reasons.
In this instance I think I'm not understanding what was optional and what was required.
Closing as not a bug. I'll be poking at the documentation and doing more with the library so I'm sure I'll have more questions. Thanks for your help.
from seaborn.
The main advantage of tsplot
is the handling of uncertainty by bootstrapping across sampling units at each timepoint (and then plotting it in various ways the emphasize different aspects of the uncertainty). It probably should behave better in situations where the caller isn't asking for all that jazz, but in your usecase it's not clear that tsplot
is ever going to give you more than doing df.plot()
.
I'll downgrade the tag to "annoyance" and think about this more :)
from seaborn.
Well this happened to me today.
from seaborn.
Related Issues (20)
- minor missing capitalization
- set_hatch not work in boxplot HOT 7
- feature request: style conditioning variable in displot like in relplot HOT 2
- The way to change the size of title in so.plot.label(title="...") HOT 2
- plt.axvspan does not work with lmplot
- Legend Overlaps with X-Axis Labels After Using move_legend in Seaborn HOT 2
- Feature Request: Allow `multiple` parameter in `sns.countplot` HOT 2
- Consider adding support for repeated-measures error bars/ CIs (following Morey, 2008) HOT 6
- Feature Request: Move x-axis labels to the top in PairGrid HOT 3
- Kwargs can't be passed from seaborn to matplotlib HOT 1
- Incorrect plotting of exactly overlapping scatter with `hue` and `hue_order` HOT 3
- Adding plot type metadata to support textual figure descriptions HOT 2
- TypeError: Cannot interpret 'Float64Dtype()' as a data type with pandas extension types HOT 2
- Consider adding mpl.Figure as an optional argument to subplot functions / classes. HOT 1
- AttributeError: module 'numpy' has no attribute 'typeDict'
- categorical plots - unused categories mess up element spacing and width HOT 4
- Customizing context or style as in seaborn as in matplotlib? HOT 1
- Introducing `seaborn_objects_recipes` Library HOT 2
- secondary y axis is messing up the y-axis labels HOT 1
- Adding precomputed errorbars to pointplot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seaborn.