Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
02158b1
FIX: attempting to draw marks figure as not-stale
tacaswell Jul 18, 2015
b0c3741
PEP: remove extra lines
tacaswell Jul 18, 2015
7f3ef65
FIX: do not propogate stale on animated artists
tacaswell Jul 23, 2015
a677634
MNT: Limit what propagates stale to figure
tacaswell Jul 23, 2015
6d6e39a
API: forbid changing figure of Artist instance
tacaswell Jul 23, 2015
1aec54b
MNT: do not re-trigger draws during draw
tacaswell Jul 23, 2015
1a58f17
DOC: added explanatory comments to example
tacaswell Jul 23, 2015
72c5ce2
FIX: make sure that offset boxes propagate axes
tacaswell Jul 31, 2015
4cc9a74
TST: don't reuse artists in tests
tacaswell Jul 31, 2015
b39fd90
FIX: protect against None child
tacaswell Jul 31, 2015
0b49a55
MNT: use direct callback for stale, not pchanged
tacaswell Aug 1, 2015
59eaad6
MNT: still only propagate True up the chain
tacaswell Aug 1, 2015
69b1b36
MNT: fix vanilla python repl hook
tacaswell Aug 1, 2015
770b8d5
FIX: remove excessive stale cleaning
tacaswell Aug 1, 2015
aa810b6
MNT: don't need try/except anymore
tacaswell Aug 1, 2015
0af89d7
FIX: fix stupid bug in pyplot
tacaswell Aug 1, 2015
14b5a36
FIX: don't push race condition on un-pickling
tacaswell Aug 1, 2015
252d7a7
MNT: make base draw_idle re-entrant
tacaswell Aug 6, 2015
a44b74d
FIX: fix documentation typos
tacaswell Aug 7, 2015
53e2db2
MNT: use no-op callback instead of None
tacaswell Aug 7, 2015
54e04d3
FIX: remove stale callback on pickling
tacaswell Aug 9, 2015
5bd4711
MNT: make figure use base-class __getstate__
tacaswell Aug 10, 2015
a48be9f
MNT: defaulting `Artist.stale_callback` to None
tacaswell Aug 10, 2015
13e7c09
FIX: stale propagation in artist without fig/ax
Aug 11, 2015
83ea020
MNT: make sorting out what to re-draw faster
tacaswell Aug 12, 2015
a5f5ab5
MNT: make set_animated smarter
tacaswell Aug 12, 2015
c75f75d
MNT: when blitting in make artist animated
tacaswell Aug 12, 2015
51cc0ca
MNT: set animated to blit state
tacaswell Aug 12, 2015
0e201f9
MNT: setting cmap/norm marks as stale
tacaswell Aug 12, 2015
25079bf
MNT: set_data on FigureImage marks as stale
tacaswell Aug 12, 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
MNT: fix vanilla python repl hook
  • Loading branch information
tacaswell committed Aug 1, 2015
commit 69b1b365006b47cd9f2f913e520dc9b34d3c4756
11 changes: 6 additions & 5 deletions lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,15 +529,16 @@ def make_active(event):
figManager._cidgcf = cid

_pylab_helpers.Gcf.set_active(figManager)
figManager.canvas.figure.number = num
fig = figManager.canvas.figure
fig.number = num

if _INSTALL_FIG_OBSERVER:
figManager.canvas.figure.add_callback(_auto_draw_if_interactive)
fig.stale_callback = _auto_draw_if_interactive

return figManager.canvas.figure
return fig


def _auto_draw_if_interactive(fig):
def _auto_draw_if_interactive(fig, val):
"""
This is an internal helper function for making sure that auto-redrawing
works as intended in the plain python repl.
Expand All @@ -547,7 +548,7 @@ def _auto_draw_if_interactive(fig):
fig : Figure
A figure object which is assumed to be associated with a canvas
"""
if fig.stale and matplotlib.is_interactive():
if val and matplotlib.is_interactive():
fig.canvas.draw_idle()


Expand Down