Skip to content

Commit

Permalink
Pass exporter into to_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Dec 30, 2021
1 parent 1129d9b commit dcc8c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/deephaven/plugin/matplotlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.1.dev0"
__version__ = "0.0.1.dev1"

def register_into(callback):
register_custom_types_into(callback)
Expand Down
2 changes: 1 addition & 1 deletion src/deephaven/plugin/matplotlib/figure_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def name() -> str:
def is_type(object) -> bool:
return isinstance(object, Figure)

def to_bytes(figure: Figure) -> bytes:
def to_bytes(exporter, figure: Figure) -> bytes:
buf = BytesIO()
figure.savefig(buf, format='PNG')
return buf.getvalue()

0 comments on commit dcc8c6a

Please sign in to comment.