print_codeο
- ScaleBar.print_code(fixed=True, return_str=False)ο
Print the command that will reproduce the scalebar in its current state.
- Parameters:
fixed (bool, optional) β
If True, the returned command will produce a scalebar that is fixed with respect to its scale, and position.
If False, the command will produce a scalebar that autoscales itself with respect to the currently set autoscale parameters.
The default is True.
return_str (bool, optional) β If True, the string is returned. If False, the string is only printed and None is returned. The default is False.
- Returns:
code β A string of the command that will reproduce the scalebar.
- Return type:
str