Skip to content

Figure linewidth not documented and not visible when saved #9370

@tdpetrou

Description

@tdpetrou

Bug report

Bug summary

When creating a figure it is possible to use linewidth along with edgecolor to create a border around the figure. The linewidth parameter is not shown in the documentation. There is no corresponding set_linewidth figure method.

Also, when saving to a file, this border is missing.

I am using Jupyter notebook.

Code for reproduction

fig = plt.figure(linewidth=20, edgecolor='r')
plt.plot([5,6])
plt.savefig('/Users/Ted/Desktop/figlw.png')

Actual outcome (in notebook)

screen shot 2017-10-11 at 11 32 37 am

Expected outcome

Matplotlib version

  • Operating system: OSX
  • Matplotlib version: 2.1
  • Matplotlib backend (module://ipykernel.pylab.backend_inline):
  • Python version: 3.6
  • Jupyter version (if applicable): 5.0
  • Other libraries:

Updated through conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions