question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need examples for adding texts on maps

See original GitHub issue

Description of the desired feature

We don’t have examples for adding texts on maps using Figure.text(). The example should be a Python script in the examples/tutorials directory. See the other Python scripts in that directory for reference.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
weiji14commented, Jun 9, 2020

Hi @hemmelig! Thanks for offering to help out! You’re right that there’s a few problems with the current text implementation I wrapped in #321, it was only a very basic start. You’re more than welcome to improve it as you see fit though (e.g. with text_font, font_size, etc arguments as you suggested). The kwargs style thing you mentioned is similar to what been proposed in #379, and you could take some cues from that PR.

In regard to point 2, it’s already raised in #255, and will be fixed once GMT 6.1.0 is released and we pull that into PyGMT.

0reactions
seismancommented, Jun 17, 2020

Can I expect any text preceded by a # (as per other examples) is formatted into markdown?

I believe the examples are written in ReST syntax.

You can submit your pull request directly. It’s easier for us to review and help improve your PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add text on a map—ArcGIS Pro | Documentation
There are various kinds of text you can add to your map. Descriptive text can be placed near individual map features. For example,...
Read more >
How to add text to a map? - Paessler Knowledge Base
Add plain text · Open an existing map or create a new one. · Open the Map Designer. · In section Properties on...
Read more >
ArcGIS Desktop Help 9.2 - Adding new text to a map
Click the New Text tool New Text tool on the Draw toolbar. · Click the map display where you want the text and...
Read more >
Project text onto axesm-based map - MATLAB textm
This MATLAB function projects the text in txt onto the current axesm-based map at the latitude-longitude locations specified by lat and lon.
Read more >
Map Text in ArcGIS Pro - YouTube
Presenter: Heather Smith, EsriCreate polished labels and other map text in ArcGIS Pro. Learn some recommended workflows, tools, tips, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found