Creating Maps - Mapping and Data Visualization with Python

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 4

  • @suchitraraniojha8567
    @suchitraraniojha8567 20 дней назад

    Thank you sir for this course. Completed today's tutorial.

  • @MegSouthee
    @MegSouthee 20 дней назад

    Is there a way to change the commas to dashes in the legend? Thank you.

    • @SpatialThoughts
      @SpatialThoughts  20 дней назад

      Yes.
      legend = ax.get_legend()
      for text in legend.texts:
      text.set_text(text.get_text().replace(',', '-')) # Replace comma

    • @abdullaholalere5393
      @abdullaholalere5393 11 дней назад

      legend = ax.get_legend()
      for text in legend.get_texts():
      text.set_text(text.get_text().replace(',', '- '))