Skip to content

Commit

Permalink
Update plot_histogram.py
Browse files Browse the repository at this point in the history
Changed variable "lloc" to "legend-location"
  • Loading branch information
Spreadcat authored Jul 17, 2024
1 parent fdff5b1 commit b252fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plot_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)
parser.add_argument("--bins", help="Number of bins (default: auto)")
parser.add_argument(
"--lloc", help="Location of the legend on plot (default: upper center)",
"--legend-location", help="Location of the legend on plot (default: upper center)",
choices=["upper center", "lower center", "right", "left", "best", "upper left", "upper right", "lower left", "lower right", "center left", "center right", "center"],
default="upper center"
)
Expand Down Expand Up @@ -62,7 +62,7 @@
range=(t_min, t_max),
)
plt.legend(
loc=args.lloc,
loc=args.legend-location,
fancybox=True,
shadow=True,
prop={"size": 7, "family": ["Source Code Pro", "Fira Mono", "Courier New"]}
Expand Down

0 comments on commit b252fe9

Please sign in to comment.