Update to follow new matplotlib versions

This commit is contained in:
Atsushi Togo 2018-10-28 10:43:55 +09:00
parent 215eed71c5
commit 1e0b6f230f
1 changed files with 6 additions and 6 deletions

View File

@ -288,9 +288,9 @@ def main(args):
plt.xlim(distances[0], distances[-1])
if args.f_max is not None:
plt.ylim(ymax=args.f_max)
plt.ylim(top=args.f_max)
if args.f_min is not None:
plt.ylim(ymin=args.f_min)
plt.ylim(bottom=args.f_min)
plt.axhline(y=0, linestyle=':', linewidth=0.5, color='b')
if len(filenames) == 1:
xticks = segment_positions
@ -351,13 +351,13 @@ def main(args):
ax2.set_xlim((0, None))
if args.f_max is not None:
plt.ylim(ymax=args.f_max)
plt.ylim(top=args.f_max)
if args.f_min is not None:
plt.ylim(ymin=args.f_min)
plt.ylim(bottom=args.f_min)
if args.dos_max is not None:
plt.xlim(xmax=args.dos_max)
plt.xlim(right=args.dos_max)
if args.dos_min is not None:
plt.xlim(xmin=args.dos_min)
plt.xlim(left=args.dos_min)
if args.output_filename is not None:
plt.rcParams['pdf.fonttype'] = 42