Skip to content
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

ENH : add function to add displayhook #4091

Merged
merged 79 commits into from
May 25, 2015
Merged

Commits on May 25, 2015

  1. ENH : add function to add displayhook for IPython

     - add `draw_all` function to pyplot
     - add `install_ipython_repl_hook` to pyplot which when
     run monkey-patches the ipython DisplayHook to call draw_all
     when ever the repl comes back.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    96d3605 View commit details
    Browse the repository at this point in the history
  2. ENH : greatly simplified last commit

     - renamed to `install_repl_displayhook`
     - should work with all shells?
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    d9f9d2a View commit details
    Browse the repository at this point in the history
  3. ENH : special case IPython display hook

    Something funny goes on with the zeromq based kernels and
    we aren't modifying the namespace we think we are modifying.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    76a87fe View commit details
    Browse the repository at this point in the history
  4. ENH : hook into IPython better

    Follow advice from @minrk and use existing IPython
    pluggable machinery rather than terrifying monkey-patching.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    fb994e9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    51f08cd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    28dcf3c View commit details
    Browse the repository at this point in the history
  7. ENH : add dirty flag

    First pass at adding awareness of 'dirty' state to the draw tree.
    
    Changing properties of an artist (as indicated by a call to
    `self.pchanged()`) will make that artists axes and figure as 'dirty'.
    The state of the figure is queried by the `Gcf.draw_all` to only re-draw
    figure that are dirty.  This is a major performance gain for expensive
    to draw figures.
    
    This is also (maybe) setting the stage for partial re-draws.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    f9ac8d0 View commit details
    Browse the repository at this point in the history
  8. ENH : add force logic to draw_all

    Add kwarg to Gcf.draw_all to force redraw of all figures (even
    if the figure does not think it needs it).
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    6a6f8d9 View commit details
    Browse the repository at this point in the history
  9. ENH : first pass at making Line2D objects dirty-aware

    All set_* commands now set dirty to be True if the value
    is changed.
    
    This required pre-defining all of the Line2D private attributes in the
    `__init__` method so that all of the `set_*` methods work the first
    time through.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    b8bd396 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    17c4461 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    46af65a View commit details
    Browse the repository at this point in the history
  12. MNT : rename dirty -> stale

    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    ef08aa1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a8865f8 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    495b5a0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    234cc9c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    771977f View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1aaae20 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    729ada7 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    fa5cb4d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    9cec66f View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    fb3562b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6060a4c View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    bd4bd0b View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    72fae28 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    b2df645 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    7780821 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    cae51d3 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    ebf7b91 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    c5df792 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    74ebf82 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    e0e0039 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    cb0a22f View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    15451c7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    fb3181b View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    8f8dba5 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    cb82a85 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    77450ac View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    9c954e8 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    da78f69 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    1939831 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    d8d52d8 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    013e1a7 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    406e8ce View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    3290982 View commit details
    Browse the repository at this point in the history
  45. FIX : use canonical linestyles kwarg in contour

    LineCollections can have their line style set either via the
    explicit `linestyles` kwarg or via the imlicit `linestyle' which
    is set via `Artist` level `set_*` magic.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    c541248 View commit details
    Browse the repository at this point in the history
  46. MNT : remove unneeded call to set_linestyles

    This function is called as part of the `Collection.__init__` call
    so does not need to be re-called.  This also fixes an issue with the
    default value of 'linestyles` (solid) taking precedence over a passed in
    `linestyle` kwarg.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    30d1060 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    c1de4dd View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    79d971d View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    2c10dcb View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    cd70834 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    3f3ef10 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    21c677f View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    e9aa714 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    3eeb64d View commit details
    Browse the repository at this point in the history
  55. MNT : remove stale flags from Axes.draw

    The first pass at getting this to work put all of the logic to label
    artists as not stale in the Axes.draw method.  Now that all of the draw
    methods are marked up this is not needed.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    9706cc0 View commit details
    Browse the repository at this point in the history
  56. DOC : add whats new entry

    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    16bcbdf View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    f824578 View commit details
    Browse the repository at this point in the history
  58. MNT : use draw_idle not draw in Gcf.draw_all

    `draw_idle` has a better chance of not stepping on it's own
    toes and re-drawing multiple times in quick secession.
    
    I think this will also play nicer with the OSX backend?
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    8112b43 View commit details
    Browse the repository at this point in the history
  59. ENH : add stale flag to Axes.cla

    Set stale after clearing (just to be safe)
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    05f6426 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    d29be28 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    2970d30 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    83aafff View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    a555475 View commit details
    Browse the repository at this point in the history
  64. MNT : add guards to only register repl hook once

    Multiple calls to install_repl_displayhook are effectively no-ops.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    f4efac1 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    f41ae9e View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    096d714 View commit details
    Browse the repository at this point in the history
  67. FIX : order of operation is Poly3DCollection init

    Make sure parent class is `__init__`'d before trying to
    use a function that requires _stale attribute.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    17d9ada View commit details
    Browse the repository at this point in the history
  68. ENH : integrate repl hook with is_interactive

     - add calls to {un}install in plt.i{on, off}
     - registered functions consult `mpl.is_interactive`
       before triggering draws
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    54da8cc View commit details
    Browse the repository at this point in the history
  69. FIX : logic for IPython hook registration

    Only set the global _IP_REGISTERED if the registration succeeds, with
    the finally block it would be set if _both_ failed.
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    a26831d View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    1c99420 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    a9faf4b View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    e3fb850 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    2beb5f9 View commit details
    Browse the repository at this point in the history
  74. MNT : hackily make boilerplate PY3 compatable

    Hide the python2 only code in a conditional
    tacaswell committed May 25, 2015
    Configuration menu
    Copy the full SHA
    f15c871 View commit details
    Browse the repository at this point in the history
  75. MNT : remove draw_if_interactive from boilerplate

    With the repl callback the pyplot function do not need to
    call `draw_if_interactive`.
    tacaswell committed May 25, 2015
    26 Configuration menu
    Copy the full SHA
    b2fbae7 View commit details
    Browse the repository at this point in the history
  76. MNT : remove non-boilerplate draw_if_interactive

    There is still one `draw_if_interactive` left in the `rcdefaults`
    call as the current scheme does not track when rcparams change.
    tacaswell committed May 25, 2015
    5 Configuration menu
    Copy the full SHA
    89923a6 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    38f00af View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    9724f3d View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    0abbcf6 View commit details
    Browse the repository at this point in the history