# Legend Input File

**URL:** <https://forum.generic-mapping-tools.org/t/legend-input-file/2977>\
**Category:** PyGMT Q&A\
**Created:** [May 31, 2022, 1:05pm UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977 "2022-05-31T13:05:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankara17](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ankara17/32/4530_2.png) [@ankara17](https://forum.generic-mapping-tools.org/u/ankara17)\
**Post date:** [May 31, 2022, 1:05pm UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977/1 "2022-05-31T13:05:24Z")

</div>

Hi, today, i want to make some figure with legends, but I am confuse about some commands in legend input file. Is there are detail documentations about it?

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [May 31, 2022, 1:07pm UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977/2 "2022-05-31T13:07:46Z")

</div>

Hi ankara17!

I think you could start with the docs. See the legend codes and the example.

> **[legend — GMT 6.4.0 documentation](https://docs.generic-mapping-tools.org/dev/legend.html)**

---

<div class="post-metadata">

**Author:** ![ankara17](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ankara17/32/4530_2.png) [@ankara17](https://forum.generic-mapping-tools.org/u/ankara17)\
**Post date:** [May 31, 2022, 2:05pm UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977/3 "2022-05-31T14:05:57Z")

</div>

Hi Esteban82!

I have seen it. Next, how i make legend with tables? In the docs, i can not see contain of table\_41.txt. Thank you

> **[(41) Legend with tables — GMT 6.2.0 documentation](https://docs.generic-mapping-tools.org/6.2/gallery/ex41.html?highlight=gmt%20legend)**

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [May 31, 2022, 2:56pm UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977/4 "2022-05-31T14:56:55Z")

</div>

You can see the table\_41.txt in fhe following link:

> <https://github.com/GenericMappingTools/gmtserver-admin/blob/master/cache/table_41.txt>

And you could use this command to download it to your pc:  
`gmt which @table_41.txt`

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [May 31, 2022, 3:00pm UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977/5 "2022-05-31T15:00:00Z")

</div>

Yes, I think that the easiest way to learn about legends is to use an example and modify it.

---

<div class="post-metadata">

**Author:** ![ankara17](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ankara17/32/4530_2.png) [@ankara17](https://forum.generic-mapping-tools.org/u/ankara17)\
**Post date:** [November 1, 2022, 6:19am UTC](https://forum.generic-mapping-tools.org/t/legend-input-file/2977/6 "2022-11-01T06:19:57Z")

</div>

How to use symbol in legend? I want to use ≤ in pygmt (@~\243@~) but the result like this

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/2/2ee1ead4381dc1d3c8bfc2267d3d8fe0370b48eb.png)
