Skip to content

Kernel dies if an additional subset map is added #569

Closed
@michaelgrund

Description

@michaelgrund

Hey guys,

I recently tried to generate a figure in a jupyter notebook which consists of two maps (A and B). For that I first generated a map (A) using fig.coast(...) which works well. For the second map (B) I first use shift_origin to move it a little bit right. Then I use again fig.coast(...) to generate map B. At this point the kernel dies and it's not possible to continue. Any ideas what happens here?

The issue is similar to #514, however, not exactly the same.

import pygmt

fig = pygmt.Figure()

lon = 19
lat = 64

fig.coast(region = 'g',
          projection = 'E' + str(lon) + '/' + str(lat) + '/5c',
          resolution = 'c', 
          shorelines = '1/thinnest,black', 
          frame = ['30g0'],
          area_thresh = ['5000'],
          G = 'lightgray',
          C = 'lightgray')

fig.shift_origin(xshift = '3c')

fig.coast(region = 'g',
          projection = 'E' + str(lon) + '/' + str(lat) + '/5c',
          resolution = 'c', 
          shorelines = '1/thinnest,black', 
          frame = ['30g0'],
          area_thresh = ['5000'],
          G = 'lightgray',
          C = 'lightgray')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamBug or missing feature of upstream core GMT

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions