Skip to content

small bug in set_axes_limits #193

@martalmeida

Description

@martalmeida

There is a small bug in set_axes_limits. The argument ax should be used in the self.drawmapboundary calls, here:

    # if map boundary not yet drawn for elliptical maps, draw it with default values.
    if not self._mapboundarydrawn or self._mapboundarydrawn not in ax.patches:
        # elliptical map, draw boundary manually.
        if (self.projection in ['ortho','geos','nsper','aeqd'] and
            self._fulldisk) or self.round or self.projection in _pseudocyl:
            # first draw boundary, no fill
            limb1 = self.drawmapboundary(fill_color='none')  <----------------|
            # draw another filled patch, with no boundary.
            limb2 = self.drawmapboundary(linewidth=0)        <----------------|
            self._mapboundarydrawn = limb2

I found this cos I was getting a funny ellipse on my colorbar!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions