Skip to content

ENH : add function to add displayhook #4091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 79 commits into from
May 25, 2015
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
96d3605
ENH : add function to add displayhook for IPython
tacaswell Feb 9, 2015
d9f9d2a
ENH : greatly simplified last commit
tacaswell Feb 10, 2015
76a87fe
ENH : special case IPython display hook
tacaswell Feb 10, 2015
fb994e9
ENH : hook into IPython better
tacaswell Feb 10, 2015
51f08cd
MNT : install the replhook by default
tacaswell Mar 3, 2015
28dcf3c
ENH : move draw_all to Gcf class method
tacaswell Mar 3, 2015
f9ac8d0
ENH : add dirty flag
tacaswell Mar 16, 2015
6a6f8d9
ENH : add force logic to draw_all
tacaswell Mar 16, 2015
b8bd396
ENH : first pass at making Line2D objects dirty-aware
tacaswell Mar 16, 2015
17c4461
ENH : add dirty flag to missed Line2D.set_* methods
tacaswell Mar 16, 2015
46af65a
MNT : only set the figure call back if figure is not None
tacaswell Mar 16, 2015
ef08aa1
MNT : rename dirty -> stale
tacaswell Mar 31, 2015
a8865f8
ENH : add stale flag to all set_* methods in Artist
tacaswell Mar 31, 2015
495b5a0
STY : don't re-define variables
tacaswell Apr 15, 2015
234cc9c
ENH : add stale flags to Collection
tacaswell Apr 21, 2015
771977f
ENH : add stale flag to _CollectionWithSizes
tacaswell Apr 21, 2015
1aaae20
ENH : add stale flag to PathCollection
tacaswell Apr 21, 2015
729ada7
ENH : add stale flag to PolyCollection
tacaswell Apr 21, 2015
fa5cb4d
ENH : add stale flag to EventCollection
tacaswell Apr 21, 2015
9cec66f
ENH : add stale flag to QuadMesh
tacaswell Apr 21, 2015
fb3562b
ENH : add stale flag to Figure
tacaswell Apr 27, 2015
6060a4c
ENH : add stale flag to *Image* classes
tacaswell Apr 28, 2015
bd4bd0b
DOC : fix axis -> axes typo in comment
tacaswell Apr 28, 2015
72fae28
ENH : add stale flag to Legend
tacaswell Apr 29, 2015
b2df645
ENH : add stale flag to Offsetbox
tacaswell Apr 30, 2015
7780821
ENH : add stale flag to PaddedBox
tacaswell Apr 30, 2015
cae51d3
ENH : add stale flag to DrawingArea
tacaswell Apr 30, 2015
ebf7b91
ENH : add stale flag to TextArea
tacaswell Apr 30, 2015
c5df792
ENH : add stale flag to AuxTransformBox
tacaswell Apr 30, 2015
74ebf82
STY : remove excessive indets
tacaswell Apr 30, 2015
e0e0039
ENH : add stale flag to AnchoredOffsetbox
tacaswell Apr 30, 2015
cb0a22f
ENH : add stale flag to OffsetImage
tacaswell Apr 30, 2015
15451c7
ENH : add stale flag to AnnotationBbox
tacaswell Apr 30, 2015
fb3181b
ENH : add stale flag to Patch
tacaswell Apr 30, 2015
8f8dba5
ENH : add stale flag to Rectangle
tacaswell Apr 30, 2015
cb82a85
ENH : add stale flag to Polygon
tacaswell Apr 30, 2015
77450ac
ENH : add stale flag to Wedge
tacaswell Apr 30, 2015
9c954e8
ENH : add stale flag to FancyBboxPatch
tacaswell Apr 30, 2015
da78f69
ENH : add stale flag to FancyArrowPatch
tacaswell Apr 30, 2015
1939831
ENH : add stale flag to FancyArrowPatch
tacaswell Apr 30, 2015
d8d52d8
ENH : add stale flag to QuiverKey
tacaswell Apr 30, 2015
013e1a7
ENH : add stale flag to Quiver
tacaswell Apr 30, 2015
406e8ce
ENH : add stale flag to Barb
tacaswell Apr 30, 2015
3290982
FIX : fix order of operation in __init__ functions
tacaswell May 4, 2015
c541248
FIX : use canonical linestyles kwarg in contour
tacaswell May 5, 2015
30d1060
MNT : remove unneeded call to set_linestyles
tacaswell May 5, 2015
c1de4dd
FIX : fix init order in AnnotationBbox
tacaswell May 5, 2015
79d971d
FIX : reorder __init__ of OffsetBox
tacaswell May 5, 2015
2c10dcb
ENH : add stale flag to Spines
tacaswell May 5, 2015
cd70834
ENH : add stale flag to Cell
tacaswell May 5, 2015
3f3ef10
ENH : add stale flag to CustumCell
tacaswell May 5, 2015
21c677f
ENH : add stale flag to Table
tacaswell May 5, 2015
e9aa714
ENH : add stale flag to Text
tacaswell May 5, 2015
3eeb64d
ENH : add stale flag to TextWithDash
tacaswell May 5, 2015
9706cc0
MNT : remove stale flags from Axes.draw
tacaswell May 5, 2015
16bcbdf
DOC : add whats new entry
tacaswell May 5, 2015
f824578
FIX : add missing stale flag to Line2D
tacaswell May 6, 2015
8112b43
MNT : use draw_idle not draw in Gcf.draw_all
tacaswell May 16, 2015
05f6426
ENH : add stale flag to Axes.cla
tacaswell May 16, 2015
d29be28
ENH : add stale flag to mplot3D.art3D.*
tacaswell May 16, 2015
2970d30
ENH : add stale flag to Axes3D
tacaswell May 16, 2015
83aafff
ENH : add stale flag to mplot3d.Axis
tacaswell May 16, 2015
a555475
DOC : fix docstrings which were lies
tacaswell May 16, 2015
f4efac1
MNT : add guards to only register repl hook once
tacaswell May 16, 2015
f41ae9e
DOC : added docstring to install_repl_displayhook
tacaswell May 16, 2015
096d714
ENH : added uninstall for repl displayhook
tacaswell May 16, 2015
17d9ada
FIX : order of operation is Poly3DCollection init
tacaswell May 16, 2015
54da8cc
ENH : integrate repl hook with is_interactive
tacaswell May 16, 2015
a26831d
FIX : logic for IPython hook registration
tacaswell May 16, 2015
1c99420
MNT : move repl install above boilerplate fold
tacaswell May 16, 2015
a9faf4b
ENH : add stale flag to Tick, XTick, YTick
tacaswell May 16, 2015
e3fb850
ENH : add stale flag to Axis, XAxis, YAxis
tacaswell May 16, 2015
2beb5f9
ENH : add stale flag to _AxesBase
tacaswell May 18, 2015
f15c871
MNT : hackily make boilerplate PY3 compatable
tacaswell May 16, 2015
b2fbae7
MNT : remove draw_if_interactive from boilerplate
tacaswell May 16, 2015
89923a6
MNT : remove non-boilerplate `draw_if_interactive`
tacaswell May 18, 2015
38f00af
MNT : make rcdefaults redraw all figures
tacaswell May 18, 2015
9724f3d
ENH : add stale flag to ColorbarBase and Colorbar
tacaswell May 24, 2015
0abbcf6
DOC: clearified whats new entry
tacaswell May 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ENH : add stale flag to AnnotationBbox
  • Loading branch information
tacaswell committed May 25, 2015
commit 15451c731edb96fc17de6c5a8de4067ea2377b51
4 changes: 4 additions & 0 deletions lib/matplotlib/offsetbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@ def xyann(self):
@xyann.setter
def xyann(self, xyann):
self.xybox = xyann
self.stale = True

@property
def anncoords(self):
Expand All @@ -1414,6 +1415,7 @@ def anncoords(self):
@anncoords.setter
def anncoords(self, coords):
self.boxcoords = coords
self.stale = True

def contains(self, event):
t, tinfo = self.offsetbox.contains(event)
Expand Down Expand Up @@ -1446,6 +1448,7 @@ def set_fontsize(self, s=None):
s = rcParams["legend.fontsize"]

self.prop = FontProperties(size=s)
self.stale = True

def get_fontsize(self, s=None):
"""
Expand Down Expand Up @@ -1552,6 +1555,7 @@ def draw(self, renderer):
self.patch.draw(renderer)

self.offsetbox.draw(renderer)
self.stale = False


class DraggableBase(object):
Expand Down