Skip to content

Commit

Permalink
Merge pull request #538 from ioam/renderer_last_plot
Browse files Browse the repository at this point in the history
Renderer instances keep track of last plot
  • Loading branch information
jlstevens committed Mar 11, 2016
2 parents 15fdb71 + dcee812 commit 3d19cfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class Renderer(Exporter):
backend_dependencies = {}

def __init__(self, **params):
self.last_plot = None
super(Renderer, self).__init__(**params)


Expand Down Expand Up @@ -205,6 +206,7 @@ def _validate(self, obj, fmt):
if fmt not in all_formats:
raise Exception("Format %r not supported by mode %r. Allowed formats: %r"
% (fmt, self.mode, fig_formats + holomap_formats))
self.last_plot = plot
return plot, fmt


Expand Down

0 comments on commit 3d19cfc

Please sign in to comment.