Skip to content

BUG: clabel manual mode doesn't make a gap big enough in contour #8819

Closed
@astrofrog

Description

@astrofrog

Bug report

Bug summary

Using plt.clabel(manual=True) adds labels but the labels are not easily readable because only a small gap is created in the contour.

Code for reproduction

The following works:

plt.figure()
x = np.arange(400).reshape((20,20))
c = plt.contour(x)
plt.clabel(c)

screen shot 2017-06-29 at 09 59 25

But the following doesn't give as nice a result:

plt.figure()
x = np.arange(400).reshape((20,20))
c = plt.contour(x)
plt.clabel(c, manual=True)
# click around

screen shot 2017-06-29 at 09 59 29

This happens with both the Qt5 and MacOS X backends, and I am using a retina display.

Matplotlib version

  • Operating System: MacOS X 10.11
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions