-
Notifications
You must be signed in to change notification settings - Fork 1
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 figure decorator. #46
Comments
Oooo that looks really nice. I generally have separate code blocks for different styles (or separate modules entirely just for manuscript figures). But I'd start using this instead. |
I would be curious how you do figures, it would be nice to have some clean solution. |
I generally have big blocks of custom code depending on the figure -- not sure there's a general solution there. When saving PNG or PDF, I currently just duplicate the |
Cool, I am going to play with it for one of my projects. If it works out I will go ahead and add to lcdblib. |
Description
I have been thinking about streamlining my plotting workflow. I am proposing a decorator to plot functions allow outputting different contexts and formats.
What I Did
My current decorator:
To use you can call it like so:
This would then output:
test_plot_poster.png
test_plot_poster.svg
test_plot_paper.png
test_plot_paper.svg
The notebook style is displayed.
@daler you probably already have something that does this kind of thing. Just seeing if it is generally useful and should be be added to lcdblib. Or if I should just keep it in my personal library.
The text was updated successfully, but these errors were encountered: