Skip to content

DOC: Mention date and time formatting available throughout MPL #6660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2014
Merged

DOC: Mention date and time formatting available throughout MPL #6660

merged 1 commit into from
Mar 24, 2014

Conversation

agijsberts
Copy link
Contributor

The visualization documentation only mentions plotting using pandas' interface. This patch adds another section mentions that it is also possible to plot directly with MPL and that date and time formatters are automatically available through all plots in MPL. An example shows matplotlib's errorbar function where points and errors on the x axis are respectively timestamps and offsets.

@jreback
Copy link
Contributor

jreback commented Mar 18, 2014

the error plotting is going to be supported by #5638

@agijsberts
Copy link
Contributor Author

Ok, I didn't know. I'll prepare another example: is fill_between (planned to be) supported by pandas?

@jreback
Copy link
Contributor

jreback commented Mar 18, 2014

no....that would be fine

@agijsberts
Copy link
Contributor Author

For your convenience, this is the example plot, now using MPL's stackplot.

stackplot

@jreback jreback added this to the 0.14.0 milestone Mar 20, 2014
@jreback
Copy link
Contributor

jreback commented Mar 20, 2014

@jorisvandenbossche look ok ?

@@ -674,7 +674,27 @@ Andrews curves charts:
@savefig andrews_curve_winter.png
andrews_curves(data, 'Name', colormap='winter')

Plotting directly with matplotlib
------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line should be as long as the title to avoid sphinx warnings

@jorisvandenbossche
Copy link
Member

@agijsberts I think this is certainly a good addition to the docs.
Although I was thinking, the fact that sometimes you need to plot directly with matplotlib, and the date formatting are to somewhat seperate facts that both can be under this title. But maybe seperate them a little bit? (eg just in two paragraphs)?

@sinhrks
Copy link
Member

sinhrks commented Mar 23, 2014

Regarding stackplot example, I've prepared PR #6656. I've used fill_between to outplot it.

@agijsberts
Copy link
Contributor Author

Bad news for me, good news for pandas ;)

I updated the patch with a simple finance related example.

bollinger

Hopefully this will do.

@jreback
Copy link
Contributor

jreback commented Mar 24, 2014

@agijsberts can you squash this down to a single commit...otherwise looks ok

@jorisvandenbossche @TomAugspurger

… directly with matplotlib and the automatically installed date and time formatter.
@agijsberts
Copy link
Contributor Author

@jreback Sorry about that, still new to git. Should be ok now; if not, please let me know.

@jorisvandenbossche
Copy link
Member

OK!

jreback added a commit that referenced this pull request Mar 24, 2014
DOC: Mention date and time formatting available throughout MPL
@jreback jreback merged commit ab0272c into pandas-dev:master Mar 24, 2014
@agijsberts agijsberts deleted the docs-plot-with-mpl branch March 24, 2014 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants