EOmaps
v8.1.1

General

  • πŸ› Installation
  • πŸ‘€ FAQ

Contribute

  • πŸš€ Contribution Guide

How to use EOmaps

  • 🌱 Basics
  • πŸ”΄ Data Visualization

Map Features

  • πŸ”¬ Inset Maps
  • 🌡 NaturalEarth features
  • πŸ›° WebMap layers
  • πŸ’  Vector Data
  • πŸ• Annotations, Markers, Logos, etc.
  • πŸ“ Scalebars
  • 🧭 Compass (or North Arrow)
  • β–¦ Gridlines

Interactivity

  • πŸ›Έ Callbacks
  • 🧰 Companion Widget
  • πŸ—οΈ Layout Editor
  • ✏️ Draw shapes on the map
  • πŸ•Ή Jupyter Widgets
  • πŸ”¦ Utilities

Miscellaneous

  • πŸ“¦ Reading data
  • β›­ Command Line Interface
  • πŸ“šLogging
  • πŸ”Έ Miscellaneous

Examples

  • πŸ—Ί EOmaps examples

API Reference

  • eomaps
    • Maps
    • Feature objects
      • InsetMaps
      • ColorBar
      • GridLines
      • Compass
      • ScaleBar
        • ScaleBar
        • apply_preset
        • get_position
        • get_scale
        • get_size_factor
        • print_code
        • remove
        • set_auto_scale
        • set_label_props
        • set_line_props
        • set_n
        • set_patch_props
        • set_pickable
        • set_position
        • set_scale
        • set_scale_props
        • set_size_factor
EOmaps
  • eomaps
  • ScaleBar
  • print_code
  • Edit on GitHub

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

Previous Next

© Copyright . Revision c83405be.

Built with Sphinx using a theme provided by Read the Docs.