Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@astrofrog

Description

@astrofrog
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.