Skip to content

Commit 20df8a6

Browse files
committed
update tutorial and fix coding style
1 parent 516b163 commit 20df8a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/source/tutorial01.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ We got a perfect data table. Let us draw it to a svg file:
113113

114114
.. code-block:: python
115115
116-
>>> svg = sheet.save_to_memory(file_type='svg', chart_type='line',
116+
>>> sheet.save_as("life_expectancy_in_brics_countries.svg", chart_type='line',
117117
... title='Life expectancy at birth in BRICS countries (years)',
118-
... x_labels_major_count=10, x_label_rotation=30, show_minor_x_labels=False)#"life_expectancy_in_brics_countries.svg"
118+
... x_labels_major_count=10, x_label_rotation=30, show_minor_x_labels=False)

pyexcel_chart/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ def __init__(self, file_type):
185185

186186
def get_io(self):
187187
io = BytesIO()
188+
188189
def repr_svg(self):
189190
return self.getvalue().decode('utf-8')
191+
190192
io._repr_svg_ = partial(repr_svg, io)
191193
return io
192194

0 commit comments

Comments
 (0)