X Tutup
Skip to content

Matplotlib 1.5.1 ignores annotation_clip parameter #6151

@mikoff

Description

@mikoff

Hello!
I think there is a problem with matplotlib annotation_clip value while using it to place a comment outside the main plot area. Surprisingly, but it works in jupyter notebook.

Matplotlib version: 1.5.1
Platform: Linux
Backend: Qt, TkAgg
Installed using: pip
To help us understand and resolve your issue please check that you have provided
the information below.

Minimal working example:

import numpy as np
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)
x = np.arange(0,1,0.001)
y = 0.5*np.sin(x) + np.cos(x)**2
ax.plot(x,y)

ax.annotate('Test annotation', xy=(1.5, 1.5), xycoords='data', annotation_clip=False)
plt.show()

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