# Plus signs where longitude and latitude lines should be

**URL:** <https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448>\
**Category:** Q&A\
**Created:** [May 6, 2020, 10:59pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448 "2020-05-06T22:59:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PDA1](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@PDA1](https://forum.generic-mapping-tools.org/u/PDA1)\
**Post date:** [May 6, 2020, 10:59pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/1 "2020-05-06T22:59:00Z")

</div>

Hello all. I’m a new user of GMT with very little programming experience but have been running Linux for 12 years. I have an interest in maps, of course.

For whatever reasons when executing the following code…  
pscoast -Rg -JG-75/41/4.5i -B15g15 -Dc -A5000 -Gblack -P \> GMT\_orthographic.ps

…the lines of longitude and latitude are represented by a plus sign (+). Do you know how I can fix this?

I’m running Ubuntu 18.04 Mate with GMT 5.4.3

Thank you,

Peter Dutton

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [May 7, 2020, 12:12pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/2 "2020-05-07T12:12:00Z")

</div>

Hi,  
If you are a new user of GMT you should definitively have started with GMT6. Regarding your question, you probably have some .gmtdefaults file trailing around with a setting to plot crosses instead of grid lines. See the man page of gmtdefaults (I think), or gmt.conf in GMT6.

---

<div class="post-metadata">

**Author:** ![PDA1](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@PDA1](https://forum.generic-mapping-tools.org/u/PDA1)\
**Post date:** [May 7, 2020, 8:17pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/3 "2020-05-07T20:17:16Z")

</div>

GMT 6…well installation looks like a nightmare of difficulty for us simple folks.

GMT.conf is also for version 5.4.3

I’m thinking that the lat/long continuous lines are set by GRID\_CROSS\_SIZE\_PRIMARY and SECONDARY

I’ll give it a try but I’m sure I’ll mess it up.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [May 7, 2020, 9:53pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/4 "2020-05-07T21:53:02Z")

</div>

> [@PDA1](#):
>
> GMT 6…well installation looks like a nightmare of difficulty for us simple folks.

Should not be any harder than GMT5 🙂

But tell us, what did find so scaring in the installing instructions? (aside from the fact that infinite number of Linux distros lead to long list of choices)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 7, 2020, 10:10pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/5 "2020-05-07T22:10:12Z")

</div>

Ubuntu still only doing GMT 5.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [May 7, 2020, 10:22pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/6 "2020-05-07T22:22:34Z")

</div>

Nooo!!!  
Really?

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 7, 2020, 10:39pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/7 "2020-05-07T22:39:58Z")

</div>

GMT 6.0.0 came out in Sept/October so it is only 7 months ago. It would be nice if they were not always so far behind but that is life on Ubuntu.

---

<div class="post-metadata">

**Author:** ![PDA1](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@PDA1](https://forum.generic-mapping-tools.org/u/PDA1)\
**Post date:** [May 7, 2020, 10:55pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/8 "2020-05-07T22:55:46Z")

</div>

Yes, gentlemen…only version 5.4.3 is in Ubuntu 18.04 repository (Synaptic Manager).

But, Joaquim, to answer your question about the difficulty of installing GMT 6.

You’re most likely way, way, way more advanced in Linux than I ever will be. Looking at the instructions for “building GMT 6” (since Ubuntu 18.04 installs v. 5) it’s recommended to “build” GMT. That’s way too complex for me to follow as too many dependencies and too many possible ways to wreck the installation.

> <https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md>

However, I did see something called “homebrew” here- [https://formulae.brew.sh/formula/gmt](https://formulae.brew.sh/formula/gmt)

Supposedly that’ll make installing v 6 easier. I’ll write back with the results.

Results- it was a flop as Homebrew doesn’t support 32 bit installations (mine plus a few vacuum tubes).

Thank you,

Peter Dutton

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [May 7, 2020, 11:15pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/9 "2020-05-07T23:15:38Z")

</div>

> [@PDA1](#):
>
> You’re most likely way, way, way more advanced in Linux than I ever will be.

To tell you a secrete, I can’t stand unix machines for more than 30 minutes. I’m a happy Windows user. But I do build GMT in those tortuous systems time to time.

Homebrew is for Macs but there is a Linuxbrew as well and it should be a very interesting alternative, though I don’t know about 32 bits availability, but why not?

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [May 7, 2020, 11:37pm UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/10 "2020-05-07T23:37:39Z")

</div>

Don’t be scared by the long building instructions. For ubuntu users, you can install all the dependencies using following commands:

```auto
# Install required dependencies
sudo apt-get install build-essential cmake libcurl4-gnutls-dev libnetcdf-dev

# Install optional dependencies
sudo apt-get install gdal-bin libgdal-dev libfftw3-dev libpcre3-dev liblapack-dev libblas-dev libglib2.0-dev ghostscript

# to enable movie-making
sudo apt-get install graphicsmagick ffmpeg

# to enable document viewing via gmt docs
sudo apt-get install xdg-utils

```

---

<div class="post-metadata">

**Author:** ![weiji14](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/weiji14/32/33_2.png) [@weiji14](https://forum.generic-mapping-tools.org/u/weiji14)\
**Post date:** [May 8, 2020, 12:41am UTC](https://forum.generic-mapping-tools.org/t/plus-signs-where-longitude-and-latitude-lines-should-be/448/11 "2020-05-08T00:41:53Z")

</div>

> [@PDA1](#):
>
> I’m thinking that the lat/long continuous lines are set by GRID\_CROSS\_SIZE\_PRIMARY and SECONDARY

If you set `MAP_GRID_CROSS_SIZE_PRIMARY` and `MAP_GRID_CROSS_SIZE_SECONDARY` to `0p` in your [`gmt.conf`](https://gmt.soest.hawaii.edu/doc/5.4.5/gmt.conf.html#map-parameters) file, that should give you continuous lines as usual.

As an aside, the latest Ubuntu LTS 20.04 Focal Fossa does have GMT 6, see [Ubuntu – Details of package gmt in focal](https://packages.ubuntu.com/focal/gmt).
