Skip to content

Commit

Permalink
Add flag `--hex-size' to change the size of hexagons in visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Mar 9, 2018
1 parent dc8b55a commit d4507b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion megaradrp/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def main(argv=None):
help='Do not show values out of range')
parser.add_argument('--title', help='Title of the plot')
parser.add_argument('--label', help='Legend of the colorbar')
parser.add_argument('--hex-size', type=float,
help='Size of the hexagons (default is {})'.format(SCALE),
default=SCALE)
parser.add_argument('--min-cut', type=float,
help='Inferior cut level')
parser.add_argument('--max-cut', type=float,
Expand Down Expand Up @@ -342,7 +345,7 @@ def main(argv=None):
else:
zdisp = zval

col = hexplot(ax, x, y, zdisp, scale=SCALE, cmap=args.colormap, norm=norm)
col = hexplot(ax, x, y, zdisp, scale=args.hex_size, cmap=args.colormap, norm=norm)

if args.title is not None:
ax.set_title(args.title)
Expand Down

0 comments on commit d4507b9

Please sign in to comment.