Skip to content
Snippets Groups Projects
Verified Commit 2a1ebe3b authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

add choices and default to `--x-ticks-rotation-*`

parent f55bb0db
Branches
No related tags found
No related merge requests found
......@@ -116,8 +116,8 @@ if __name__ == "__main__":
plot_parser.add_argument("--x-lim", nargs=2, help="limit the x axis of the plot, use `null` for open bounds")
plot_parser.add_argument("--y-lim", nargs=2, help="limit the y axis of the plot, use `null` for open bounds")
plot_parser.add_argument("--x-ticks-rotation", type=float, help="the rotation angle, in degrees, of the ticks of the X axis")
plot_parser.add_argument("--x-ticks-rotation-horizontal-alignment", type=str, default="left", help="the rotation horizontal alignment")
plot_parser.add_argument("--x-ticks-rotation-mode", type=str, default="anchor", help="the rotation mode")
plot_parser.add_argument("--x-ticks-rotation-horizontal-alignment", type=str, default="left", choices=["left", "center", "right"], help="the rotation horizontal alignment")
plot_parser.add_argument("--x-ticks-rotation-mode", type=str, default="anchor", choices=[None, "default", "anchor"], help="the rotation mode")
plot_parser.add_argument("--x-ticks", type=float, nargs='*', help="the ticks for the X axis")
plot_parser.add_argument("--x-tick-labels", type=str, nargs='*', help="the tick labels for the X axis, should be the same length as `--x-ticks`")
plot_parser.add_argument("--y-ticks", type=float, nargs='*', help="the ticks for the Y axis")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment