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

Options to select data to plot #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow to change output file name
Add parameter -o --output to specify output file name (default still works)
  • Loading branch information
ondrejtichacek committed Jul 22, 2017
commit 7b7d10eba2ef54f414f66217c986b6f4ef085868
5 changes: 4 additions & 1 deletion examplescripts/pycorn-bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ def plotterX(inp,fname):
host.yaxis.set_minor_locator(AutoMinorLocator())
if not args.no_title:
plt.title(fname, loc='left', size=9)
plot_file = fname[:-4] + "_" + inp.run_name + "_plot." + args.format
if not args.output:
plot_file = fname[:-4] + "_" + inp.run_name + "_plot." + args.format
else:
plot_file = args.output
plt.savefig(plot_file, bbox_inches='tight', dpi=args.dpi)
print("Plot saved to: " + plot_file)
plt.clf()
Expand Down