Skip to content

Commit

Permalink
include matplotlib figure in Image
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt committed Nov 7, 2021
1 parent 4748f77 commit 51354e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
descr = "A declarative API for composing spreadsheets from python"
name = 'xlcompose'
url = 'https://github.com/jbogaardt/xlcompose'
version='0.2.4' # Put this in __init__.py
version='0.3.0' # Put this in __init__.py

data_path = ''
setup(
Expand Down
2 changes: 1 addition & 1 deletion xlcompose/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.2.4'
__version__ = '0.3.0'
from xlcompose.core import (
Tabs, Sheet, Row, Column,
DataFrame, Series, CSpacer, RSpacer, Title, Image, VSpacer, HSpacer)
Expand Down
2 changes: 1 addition & 1 deletion xlcompose/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class Image(_XLCBase):
"""

def __init__(self, data, width=1, height=1, formats={}, *args, **kwargs):
if data.__class__.__name__ == 'AxesSubplot':
if data.__class__.__name__ in ['AxesSubplot', 'Figure']:
#inch_to_row = 0.01431127
#inch_to_col = 0.077469335
#img_shape = data.get_figure().get_size_inches()
Expand Down

0 comments on commit 51354e5

Please sign in to comment.