X Tutup
Skip to content

Despined figure is cropped #6084

@Phyks

Description

@Phyks

Hi,

When removing frame from a figure (as seaborn use to do for instance), the figure is cropped at extrema (see below).

  • Matplotlib version: 1.5.1
  • How did you install Matplotlib and Python (pip, anaconda, from source ...) : pip
  • SSCE:

Note that I increased the linewidth just to enhance the effect and that it could be well noticed. However, there is a similar issue with the default linewidth.

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-10, 10, 10000)
fig, ax = plt.subplots()
ax.plot(x, [np.sin(i) for i in x], linewidth=3)
ax.axis('off')
fig.show()
  • If this is an image generation bug attach a screenshot demonstrating the issue.

2016-03-01-103743

Thanks

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

      X Tutup