Skip to content

Commit

Permalink
Merge pull request #27 from y-kimura/hotfix/fix_xy_transpose
Browse files Browse the repository at this point in the history
散布図のXYが逆転する不具合修正
  • Loading branch information
sptea authored May 7, 2019
2 parents 8125cf6 + a01a351 commit e080fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pptx_template/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# coding=utf-8
__version__ = '0.2.7'
__version__ = '0.2.8'
4 changes: 2 additions & 2 deletions pptx_template/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def _build_xy_chart_data(csv, xy_transpose, number_format):
xy_col = csv.iloc[:, [0, i]]
for (_, row) in xy_col.iterrows():
if xy_transpose:
x, y = _nan_to_none(row[0]), _nan_to_none(row[1])
else:
y, x = _nan_to_none(row[0]), _nan_to_none(row[1])
else:
x, y = _nan_to_none(row[0]), _nan_to_none(row[1])
log.debug(u" Adding xy %s,%s" % (x, y))
series.add_data_point(x, y)
return chart_data
Expand Down

0 comments on commit e080fe8

Please sign in to comment.