Skip to content
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

add recipes for time periods #2035

Merged
merged 2 commits into from
Jul 18, 2019
Merged

Conversation

wfrgra
Copy link
Contributor

@wfrgra wfrgra commented May 24, 2019

Could be improved by applying the recipes to the Period supertype if that works in recipes. I couldn't figure out the syntax.

@mkborregaard mkborregaard requested a review from daschw May 24, 2019 06:03
@daschw
Copy link
Member

daschw commented May 24, 2019

How about

@recipe f(::Type{P}, t::P) where P <: Dates.Period = (t -> Dates.value(t), t -> string(P(t)))

instead?

@wfrgra
Copy link
Contributor Author

wfrgra commented May 24, 2019

Much nicer, cheers

@daschw
Copy link
Member

daschw commented Jun 12, 2019

Are you still planning to update this PR, @wfrgra ?

@asinghvi17
Copy link
Member

bump

@daschw daschw merged commit 84c5b67 into JuliaPlots:master Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants