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

One script per figure #4

Open
petebachant opened this issue Mar 19, 2019 · 2 comments
Open

One script per figure #4

petebachant opened this issue Mar 19, 2019 · 2 comments

Comments

@petebachant
Copy link

Just adding a comment here that I prefer to use one script (usually plot.py at top level) that has a positional command line argument (using argparse) for which figure(s) to create. This seems cleaner to me because you can keep your plotting functions all in one file, and generate multiple figures with a single command.

@Wookai
Copy link
Owner

Wookai commented Mar 19, 2019

I usually end up with a hybrid approach, where figures that are related (e.g. plots of a CDF or results plots) are generated by the same script but I have different scripts for each type of figure. They all use plot_utils to set the global parameters such as font size, line width, etc., though.

I think the main point is to have script(s) that allow you to generate your figures in one click. Whether your have one big script with parameters or different scripts is more a matter of taste in my opinion :).

@Sarayutnang2099
Copy link

@petebachant

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

No branches or pull requests

3 participants