GenericMappingTools / GenericMappingTools/gmt

legend: clearances between legend items and the box border

Open
#4,101 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

**Description of the problem**

In the **legend** module, it seems the **-F+c** and **-C** options set the clearance between legend terms and the frame. Is it right? If yes, perhaps we should remove the **-C** option from the documentation (still keep it for backward compatibility).

Here is an example:
```
gmt begin GMT_autolegend
gmt plot -R0/7.2/3/7.2 -Jx2c @Table_5_11.txt -Sc0.35c -Glightgreen -Wfaint -lApples+H"LEGEND"+f16p+D
gmt plot @Table_5_11.txt -St0.35c -Gorange -B -BWStr -lOranges
gmt legend -DjTR+w3c+o0.25c -F+p1p+ggray95+s+c10p/10p
gmt end show
```
Removing `+c10p/10p` and adding `-C10p/10p` gives similar plots.

For large clearances, `+c50p/50p` still works well, but `-C50p/50p` doesn't. Here is the result for `-C50p/50p`.

![image](https://user-images.githubusercontent.com/3974108/91574591-302c0e00-e915-11ea-8e1e-ddc6613ef1ab.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.