[Python-modules-commits] [xlsxwriter] 01/04: New upstream version 0.9.3
Hilko Bengen
bengen at moszumanska.debian.org
Tue Dec 6 19:53:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository xlsxwriter.
commit b8b9342318f1699ecfccd0857c4dc71103105765
Author: Hilko Bengen <bengen at debian.org>
Date: Wed Sep 21 02:36:21 2016 +0200
New upstream version 0.9.3
---
Changes | 175 ++++++++++++-
MANIFEST.in | 9 -
PKG-INFO | 11 +-
README.rst | 6 +-
XlsxWriter.egg-info/PKG-INFO | 86 ------
XlsxWriter.egg-info/SOURCES.txt | 125 ---------
XlsxWriter.egg-info/dependency_links.txt | 1 -
XlsxWriter.egg-info/top_level.txt | 1 -
docs/readme.html | 2 +-
examples/array_formula.py | 2 +-
examples/autofilter.py | 2 +-
examples/cell_indentation.py | 2 +-
examples/chart.py | 2 +-
examples/chart_area.py | 2 +-
examples/chart_bar.py | 2 +-
examples/chart_clustered.py | 2 +-
examples/chart_column.py | 2 +-
examples/chart_combined.py | 4 +-
examples/chart_data_table.py | 2 +-
examples/chart_data_tools.py | 2 +-
examples/chart_date_axis.py | 2 +-
examples/chart_doughnut.py | 6 +-
examples/chart_gradient.py | 2 +-
examples/chart_line.py | 2 +-
examples/chart_pareto.py | 2 +-
examples/chart_pattern.py | 60 +++++
examples/chart_pie.py | 14 +-
examples/chart_radar.py | 2 +-
examples/chart_scatter.py | 4 +-
examples/chart_secondary_axis.py | 2 +-
examples/chart_stock.py | 2 +-
examples/chart_styles.py | 2 +-
examples/chartsheet.py | 2 +-
examples/comments1.py | 2 +-
examples/comments2.py | 10 +-
examples/conditional_format.py | 6 +-
examples/context_manager.py | 2 +-
examples/data_validate.py | 4 +-
examples/datetimes.py | 2 +-
examples/defined_name.py | 2 +-
examples/demo.py | 2 +-
examples/diagonal_border.py | 2 +-
examples/doc_properties.py | 2 +-
examples/headers_footers.py | 4 +-
examples/hello_world.py | 2 +-
examples/hide_row_col.py | 4 +-
examples/hide_sheet.py | 2 +-
examples/http_server_py2.py | 11 +-
examples/http_server_py3.py | 13 +-
examples/hyperlink.py | 4 +-
examples/images.py | 2 +-
examples/images_bytesio.py | 2 +-
examples/macros.py | 2 +-
examples/merge1.py | 2 +-
examples/merge_rich_string.py | 2 +-
examples/outline.py | 2 +-
examples/outline_collapsed.py | 2 +-
examples/pandas_chart.py | 2 +-
examples/pandas_chart_columns.py | 4 +-
examples/pandas_chart_line.py | 2 +-
examples/pandas_chart_stock.py | 2 +-
examples/pandas_column_formats.py | 2 +-
examples/pandas_conditional_format.py | 2 +-
examples/pandas_datetime.py | 2 +-
examples/pandas_multiple.py | 26 ++
examples/pandas_positioning.py | 31 +++
examples/pandas_simple.py | 2 +-
examples/panes.py | 2 +-
examples/rich_strings.py | 2 +-
examples/right_to_left.py | 2 +-
examples/sparklines1.py | 2 +-
examples/sparklines2.py | 4 +-
examples/tab_colors.py | 10 +-
examples/tables.py | 2 +-
examples/text_indent.py | 2 +-
examples/textbox.py | 4 +-
examples/tutorial1.py | 2 +-
examples/tutorial2.py | 2 +-
examples/tutorial3.py | 2 +-
examples/unicode_polish_utf8.py | 2 +-
examples/unicode_python2.py | 2 +-
examples/unicode_python3.py | 2 +-
examples/unicode_shift_jis.py | 2 +-
examples/vba_extract.py | 2 +-
examples/worksheet_protection.py | 2 +-
setup.cfg | 5 -
setup.py | 5 +-
xlsxwriter/__init__.py | 2 +-
xlsxwriter/app.py | 12 +-
xlsxwriter/chart.py | 321 ++++++++++++++++++++---
xlsxwriter/chart_area.py | 2 +-
xlsxwriter/chart_bar.py | 2 +-
xlsxwriter/chart_column.py | 2 +-
xlsxwriter/chart_doughnut.py | 2 +-
xlsxwriter/chart_line.py | 2 +-
xlsxwriter/chart_pie.py | 2 +-
xlsxwriter/chart_radar.py | 2 +-
xlsxwriter/chart_scatter.py | 5 +-
xlsxwriter/chart_stock.py | 2 +-
xlsxwriter/chartsheet.py | 2 +-
xlsxwriter/comments.py | 2 +-
xlsxwriter/compat_collections.py | 4 +-
xlsxwriter/compatibility.py | 12 +-
xlsxwriter/contenttypes.py | 7 +-
xlsxwriter/core.py | 14 +-
xlsxwriter/custom.py | 140 ++++++++++
xlsxwriter/drawing.py | 7 +-
xlsxwriter/format.py | 19 +-
xlsxwriter/packager.py | 43 ++-
xlsxwriter/relationships.py | 2 +-
xlsxwriter/shape.py | 86 +++++-
xlsxwriter/sharedstrings.py | 2 +-
xlsxwriter/styles.py | 8 +-
xlsxwriter/table.py | 2 +-
xlsxwriter/theme.py | 2 +-
xlsxwriter/utility.py | 10 +-
xlsxwriter/vml.py | 2 +-
xlsxwriter/workbook.py | 162 ++++++++++--
xlsxwriter/worksheet.py | 431 +++++++++++++++++++------------
xlsxwriter/xmlwriter.py | 25 +-
120 files changed, 1444 insertions(+), 657 deletions(-)
diff --git a/Changes b/Changes
index ccc031d..bb556ac 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,165 @@
+Release 0.9.3 - July 8 2016
+---------------------------
+
+* Added check to :func:`add_table` to prevent duplicate header names which
+ leads to a corrupt Excel file.
+ Issue `#362 <https://github.com/jmcnamara/XlsxWriter/issues/362>`_.
+
+
+Release 0.9.2 - June 13 2016
+----------------------------
+
+* Added workbook :func:`set_size` method to set the workbook window size.
+
+
+Release 0.9.1 - June 8 2016
+---------------------------
+
+* Added font support to chart :func:`set_table`.
+
+* Documented used of font rotation in chart :ref:`data labels
+ <chart_series_option_data_labels>`.
+ Issue `#337 <https://github.com/jmcnamara/XlsxWriter/issues/337>`_.
+
+
+Release 0.9.0 - June 7 2016
+---------------------------
+
+* Added :ref:`trendline properties <chart_series_option_trendline>`:
+ ``intercept``, ``display_equation`` and ``display_r_squared``.
+ Feature request `#357 <https://github.com/jmcnamara/XlsxWriter/issues/357>`_.
+
+
+Release 0.8.9 - June 1 2016
+---------------------------
+
+* Fix for :func:`insert_image` issue when handling images with zero dpi.
+ Issue `#356 <https://github.com/jmcnamara/XlsxWriter/issues/356>`_.
+
+
+Release 0.8.8 - May 31 2016
+---------------------------
+
+* Added workbook :func:`set_custom_property` method to set custom document
+ properties.
+ Feature request `#355 <https://github.com/jmcnamara/XlsxWriter/issues/355>`_.
+
+
+Release 0.8.7 - May 13 2016
+---------------------------
+
+* Fix for issue when inserting read-only images on Windows.
+ Issue `#352 <https://github.com/jmcnamara/XlsxWriter/issues/352>`_.
+
+* Added :func:`get_worksheet_by_name()` method to allow the retrieval of a
+ worksheet from a workbook via its name.
+
+* Fixed issue where internal file creation and modification dates were in the
+ local timezone instead of UTC.
+
+Release 0.8.6 - April 27 2016
+-----------------------------
+
+* Fix for ``external:`` urls where the target/anchor contains spaces.
+ Issue `#350 <https://github.com/jmcnamara/XlsxWriter/issues/350>`_.
+
+
+Release 0.8.5 - April 17 2016
+-----------------------------
+
+* Added additional documentation on :ref:`ewx_pandas` and
+ :ref:`pandas_examples`.
+
+* Added fix for :func:`set_center_across` format method.
+
+
+Release 0.8.4 - January 16 2016
+-------------------------------
+
+* Fix for :func:`write_url` exception when the URL contains two ``#``
+ location/anchors. Note, URLs like this aren't strictly valid and cannot be
+ entered manually in Excel.
+ Issue `#330 <https://github.com/jmcnamara/XlsxWriter/issues/330>`_.
+
+
+Release 0.8.3 - January 14 2016
+-------------------------------
+
+* Added options to configure chart axis tick placement. See :func:`set_x_axis()`.
+
+
+Release 0.8.2 - January 13 2016
+-------------------------------
+
+* Added transparency option to solid fill colors in chart areas
+ (:ref:`chart_formatting_fill`).
+ Feature request `#298 <https://github.com/jmcnamara/XlsxWriter/issues/298>`_.
+
+
+Release 0.8.1 - January 12 2016
+-------------------------------
+
+* Added option to set chart tick interval.
+ Feature request `#251 <https://github.com/jmcnamara/XlsxWriter/issues/251>`_.
+
+
+Release 0.8.0 - January 10 2016
+-------------------------------
+
+* Added additional documentation on :ref:`working_with_formulas`.
+
+
+Release 0.7.9 - January 9 2016
+------------------------------
+
+* Added chart pattern fills, see :ref:`chart_formatting_pattern` and
+ :ref:`ex_chart_pattern`.
+ Feature request `#268 <https://github.com/jmcnamara/XlsxWriter/issues/268>`_.
+
+
+Release 0.7.8 - January 6 2016
+------------------------------
+
+* Add checks for valid and non-duplicate worksheet table names.
+ Issue `#319 <https://github.com/jmcnamara/XlsxWriter/issues/319>`_.
+
+
+Release 0.7.7 - October 19 2015
+-------------------------------
+
+* Added support for table header formatting and a fix for wrapped lines in the
+ header.
+ Feature request `#287 <https://github.com/jmcnamara/XlsxWriter/issues/287>`_.
+
+
+Release 0.7.6 - October 7 2015
+------------------------------
+
+* Fix for images with negative offsets.
+ Issue `#273 <https://github.com/jmcnamara/XlsxWriter/issues/273>`_.
+
+
+Release 0.7.5 - October 4 2015
+------------------------------
+
+* Allow hyperlinks longer than 255 characters when the link and anchor are
+ each less than or equal to 255 characters.
+
+* Added ``hyperlink_base`` document property.
+ Feature request `#306 <https://github.com/jmcnamara/XlsxWriter/issues/306>`_.
+
+
+Release 0.7.4 - September 29 2015
+---------------------------------
+
+* Added option to allow data validation input messages with the 'any' validate
+ parameter.
+
+* Fixed url encoding of links to external files and directories.
+ Issue `#278 <https://github.com/jmcnamara/XlsxWriter/issues/278>`_.
+
+
Release 0.7.3 - May 7 2015
--------------------------
@@ -303,7 +464,7 @@ Release 0.4.9 - November 17 2013
* Improved :func:`define_name()` name validation.
* Fix to prevent modification of user parameters in
- :func:`condtional_format()`.
+ :func:`conditional_format()`.
Release 0.4.8 - November 13 2013
@@ -322,7 +483,7 @@ Release 0.4.7 - November 9 2013
* Added custom error bar option. Thanks to input from Alex Birmingham.
-* Changed Html docs to Bootstap theme.
+* Changed Html docs to Bootstrap theme.
* Added :ref:`ex_merge_rich`.
@@ -415,7 +576,7 @@ Release 0.3.7 - August 16 2013
* Changed :func:`Workbook` constructor option
``strings_to_numbers`` default option to False so that there is no implicit
- conversion of numbers in strings to numbers. The previous behaviour can be
+ conversion of numbers in strings to numbers. The previous behavior can be
obtained by setting the constructor option to True.
**Note** This is a backward incompatibility.
@@ -470,7 +631,7 @@ Release 0.3.3 - June 10 2013
PR from Alexandr Shadchin,
`#15 <https://github.com/jmcnamara/XlsxWriter/issues/15>`_.
-* Fixed invalid string formatting resulted in misleading stacktrace.
+* Fixed invalid string formatting resulted in misleading stack trace.
PR from Andrei Korostelev,
`#21 <https://github.com/jmcnamara/XlsxWriter/issues/21>`_.
@@ -478,7 +639,7 @@ Release 0.3.3 - June 10 2013
Release 0.3.2 - May 1 2013
-----------------------------
-* Speed optimisations. The module is now 10-15% faster on average.
+* Speed optimizations. The module is now 10-15% faster on average.
Release 0.3.1 - April 27 2013
@@ -551,7 +712,7 @@ Release 0.2.4 - March 31 2013
-----------------------------
* Added :func:`Workbook` ``'constant_memory'`` constructor property to
- minimise memory usage when writing large files. See :ref:`memory_perf`
+ minimize memory usage when writing large files. See :ref:`memory_perf`
for more details.
* Fixed bug with handling of UTF-8 strings in worksheet names (and probably
@@ -658,7 +819,7 @@ Release 0.1.3 - March 7 2013
* :func:`set_zoom` for setting worksheet zoom levels.
* :func:`right_to_left` for middle eastern versions of Excel.
* :func:`hide_zero` for hiding zero values in cells.
- * :func:`set_tab_color` for setting the worksheet tab colour.
+ * :func:`set_tab_color` for setting the worksheet tab color.
Release 0.1.2 - March 6 2013
diff --git a/MANIFEST.in b/MANIFEST.in
deleted file mode 100644
index 76e5f64..0000000
--- a/MANIFEST.in
+++ /dev/null
@@ -1,9 +0,0 @@
-include README.rst
-include Changes
-include LICENSE.txt
-include xlsxwriter/*.py
-include examples/*.py
-include examples/*.txt
-include examples/*.bin
-include docs/readme.html
-recursive-include docs/_static *
diff --git a/PKG-INFO b/PKG-INFO
index 1c4ef0c..03fcb40 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
Name: XlsxWriter
-Version: 0.7.3
+Version: 0.9.3
Summary: A Python module for creating Excel XLSX files.
Home-page: https://github.com/jmcnamara/XlsxWriter
Author: John McNamara
@@ -29,10 +29,10 @@ Description: XlsxWriter
* Cell comments.
* Integration with Pandas.
* Textboxes.
- * Memory optimisation mode for writing large files.
+ * Memory optimization mode for writing large files.
- It supports Python 2.5, 2.6, 2.7, 3.1, 3.2, 3.3, 3.4, Jython and PyPy and uses
- standard libraries only.
+ It supports Python 2.5, 2.6, 2.7, 3.1, 3.2, 3.3, 3.4, 3.5, Jython and PyPy and
+ uses standard libraries only.
Here is a simple example:
@@ -84,3 +84,4 @@ Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/README.rst b/README.rst
index bd8d8ea..262087e 100644
--- a/README.rst
+++ b/README.rst
@@ -21,10 +21,10 @@ including:
* Cell comments.
* Integration with Pandas.
* Textboxes.
-* Memory optimisation mode for writing large files.
+* Memory optimization mode for writing large files.
-It supports Python 2.5, 2.6, 2.7, 3.1, 3.2, 3.3, 3.4, Jython and PyPy and uses
-standard libraries only.
+It supports Python 2.5, 2.6, 2.7, 3.1, 3.2, 3.3, 3.4, 3.5, Jython and PyPy and
+uses standard libraries only.
Here is a simple example:
diff --git a/XlsxWriter.egg-info/PKG-INFO b/XlsxWriter.egg-info/PKG-INFO
deleted file mode 100644
index 1c4ef0c..0000000
--- a/XlsxWriter.egg-info/PKG-INFO
+++ /dev/null
@@ -1,86 +0,0 @@
-Metadata-Version: 1.0
-Name: XlsxWriter
-Version: 0.7.3
-Summary: A Python module for creating Excel XLSX files.
-Home-page: https://github.com/jmcnamara/XlsxWriter
-Author: John McNamara
-Author-email: jmcnamara at cpan.org
-License: BSD
-Description: XlsxWriter
- ==========
-
- **XlsxWriter** is a Python module for writing files in the Excel 2007+ XLSX
- file format.
-
- XlsxWriter can be used to write text, numbers, formulas and hyperlinks to
- multiple worksheets and it supports features such as formatting and many more,
- including:
-
- * 100% compatible Excel XLSX files.
- * Full formatting.
- * Merged cells.
- * Defined names.
- * Charts.
- * Autofilters.
- * Data validation and drop down lists.
- * Conditional formatting.
- * Worksheet PNG/JPEG images.
- * Rich multi-format strings.
- * Cell comments.
- * Integration with Pandas.
- * Textboxes.
- * Memory optimisation mode for writing large files.
-
- It supports Python 2.5, 2.6, 2.7, 3.1, 3.2, 3.3, 3.4, Jython and PyPy and uses
- standard libraries only.
-
- Here is a simple example:
-
- .. code-block:: python
-
- import xlsxwriter
-
-
- # Create an new Excel file and add a worksheet.
- workbook = xlsxwriter.Workbook('demo.xlsx')
- worksheet = workbook.add_worksheet()
-
- # Widen the first column to make the text clearer.
- worksheet.set_column('A:A', 20)
-
- # Add a bold format to use to highlight cells.
- bold = workbook.add_format({'bold': True})
-
- # Write some simple text.
- worksheet.write('A1', 'Hello')
-
- # Text with formatting.
- worksheet.write('A2', 'World', bold)
-
- # Write some numbers, with row/column notation.
- worksheet.write(2, 0, 123)
- worksheet.write(3, 0, 123.456)
-
- # Insert an image.
- worksheet.insert_image('B5', 'logo.png')
-
- workbook.close()
-
- .. image:: https://raw.github.com/jmcnamara/XlsxWriter/master/dev/docs/source/_images/demo.png
-
- See the full documentation at: http://xlsxwriter.readthedocs.org
-
- Release notes: http://xlsxwriter.readthedocs.org/changes.html
-
-
-Platform: UNKNOWN
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.5
-Classifier: Programming Language :: Python :: 2.6
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.1
-Classifier: Programming Language :: Python :: 3.2
-Classifier: Programming Language :: Python :: 3.3
-Classifier: Programming Language :: Python :: 3.4
diff --git a/XlsxWriter.egg-info/SOURCES.txt b/XlsxWriter.egg-info/SOURCES.txt
deleted file mode 100644
index d789dca..0000000
--- a/XlsxWriter.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,125 +0,0 @@
-Changes
-LICENSE.txt
-MANIFEST.in
-README.rst
-setup.cfg
-setup.py
-XlsxWriter.egg-info/PKG-INFO
-XlsxWriter.egg-info/SOURCES.txt
-XlsxWriter.egg-info/dependency_links.txt
-XlsxWriter.egg-info/top_level.txt
-docs/readme.html
-docs/_static/basic.css
-docs/_static/default.css
-docs/_static/hello01.png
-docs/_static/logo.png
-docs/_static/pygments.css
-examples/array_formula.py
-examples/autofilter.py
-examples/autofilter_data.txt
-examples/cell_indentation.py
-examples/chart.py
-examples/chart_area.py
-examples/chart_bar.py
-examples/chart_clustered.py
-examples/chart_column.py
-examples/chart_combined.py
-examples/chart_data_table.py
-examples/chart_data_tools.py
-examples/chart_date_axis.py
-examples/chart_doughnut.py
-examples/chart_gradient.py
-examples/chart_line.py
-examples/chart_pareto.py
-examples/chart_pie.py
-examples/chart_radar.py
-examples/chart_scatter.py
-examples/chart_secondary_axis.py
-examples/chart_stock.py
-examples/chart_styles.py
-examples/chartsheet.py
-examples/comments1.py
-examples/comments2.py
-examples/conditional_format.py
-examples/context_manager.py
-examples/data_validate.py
-examples/datetimes.py
-examples/defined_name.py
-examples/demo.py
-examples/diagonal_border.py
-examples/doc_properties.py
-examples/headers_footers.py
-examples/hello_world.py
-examples/hide_row_col.py
-examples/hide_sheet.py
-examples/http_server_py2.py
-examples/http_server_py3.py
-examples/hyperlink.py
-examples/images.py
-examples/images_bytesio.py
-examples/macros.py
-examples/merge1.py
-examples/merge_rich_string.py
-examples/outline.py
-examples/outline_collapsed.py
-examples/pandas_chart.py
-examples/pandas_chart_columns.py
-examples/pandas_chart_line.py
-examples/pandas_chart_stock.py
-examples/pandas_column_formats.py
-examples/pandas_conditional_format.py
-examples/pandas_datetime.py
-examples/pandas_simple.py
-examples/panes.py
-examples/rich_strings.py
-examples/right_to_left.py
-examples/sparklines1.py
-examples/sparklines2.py
-examples/tab_colors.py
-examples/tables.py
-examples/text_indent.py
-examples/textbox.py
-examples/tutorial1.py
-examples/tutorial2.py
-examples/tutorial3.py
-examples/unicode_polish_utf8.py
-examples/unicode_polish_utf8.txt
-examples/unicode_python2.py
-examples/unicode_python3.py
-examples/unicode_shift_jis.py
-examples/unicode_shift_jis.txt
-examples/vbaProject.bin
-examples/vba_extract.py
-examples/worksheet_protection.py
-xlsxwriter/__init__.py
-xlsxwriter/app.py
-xlsxwriter/chart.py
-xlsxwriter/chart_area.py
-xlsxwriter/chart_bar.py
-xlsxwriter/chart_column.py
-xlsxwriter/chart_doughnut.py
-xlsxwriter/chart_line.py
-xlsxwriter/chart_pie.py
-xlsxwriter/chart_radar.py
-xlsxwriter/chart_scatter.py
-xlsxwriter/chart_stock.py
-xlsxwriter/chartsheet.py
-xlsxwriter/comments.py
-xlsxwriter/compat_collections.py
-xlsxwriter/compatibility.py
-xlsxwriter/contenttypes.py
-xlsxwriter/core.py
-xlsxwriter/drawing.py
-xlsxwriter/format.py
-xlsxwriter/packager.py
-xlsxwriter/relationships.py
-xlsxwriter/shape.py
-xlsxwriter/sharedstrings.py
-xlsxwriter/styles.py
-xlsxwriter/table.py
-xlsxwriter/theme.py
-xlsxwriter/utility.py
-xlsxwriter/vml.py
-xlsxwriter/workbook.py
-xlsxwriter/worksheet.py
-xlsxwriter/xmlwriter.py
\ No newline at end of file
diff --git a/XlsxWriter.egg-info/dependency_links.txt b/XlsxWriter.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/XlsxWriter.egg-info/dependency_links.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/XlsxWriter.egg-info/top_level.txt b/XlsxWriter.egg-info/top_level.txt
deleted file mode 100644
index 450cd81..0000000
--- a/XlsxWriter.egg-info/top_level.txt
+++ /dev/null
@@ -1 +0,0 @@
-xlsxwriter
diff --git a/docs/readme.html b/docs/readme.html
index 3369cfe..e5bb449 100644
--- a/docs/readme.html
+++ b/docs/readme.html
@@ -146,7 +146,7 @@ also available as a
<div class="clearer"></div>
</div>
<div class="footer">
- © Copyright 2013-2015, John McNamara.
+ © Copyright 2013-2016, John McNamara.
</div>
</body>
</html>
diff --git a/examples/array_formula.py b/examples/array_formula.py
index 49d490f..05001e7 100644
--- a/examples/array_formula.py
+++ b/examples/array_formula.py
@@ -3,7 +3,7 @@
# Example of how to use Python and the XlsxWriter module to write
# simple array formulas.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/autofilter.py b/examples/autofilter.py
index 16513ee..6621a0a 100644
--- a/examples/autofilter.py
+++ b/examples/autofilter.py
@@ -6,7 +6,7 @@
# range of worksheet data. This allows users to filter the data based on
# simple criteria so that some data is shown and some is hidden.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/cell_indentation.py b/examples/cell_indentation.py
index 64bc1f2..eb464f9 100644
--- a/examples/cell_indentation.py
+++ b/examples/cell_indentation.py
@@ -4,7 +4,7 @@
#
# This program demonstrates the indentation cell format.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart.py b/examples/chart.py
index 9fe6258..ebf6036 100644
--- a/examples/chart.py
+++ b/examples/chart.py
@@ -2,7 +2,7 @@
#
# An example of a simple Excel chart with Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_area.py b/examples/chart_area.py
index 9144204..c5c8984 100644
--- a/examples/chart_area.py
+++ b/examples/chart_area.py
@@ -2,7 +2,7 @@
#
# An example of creating Excel Area charts with Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_bar.py b/examples/chart_bar.py
index e1f83f6..e58d525 100644
--- a/examples/chart_bar.py
+++ b/examples/chart_bar.py
@@ -2,7 +2,7 @@
#
# An example of creating Excel Bar charts with Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_clustered.py b/examples/chart_clustered.py
index b6ea58c..7b77306 100644
--- a/examples/chart_clustered.py
+++ b/examples/chart_clustered.py
@@ -2,7 +2,7 @@
#
# A demo of a clustered category chart in XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
from xlsxwriter.workbook import Workbook
diff --git a/examples/chart_column.py b/examples/chart_column.py
index 08f62cd..99a30af 100644
--- a/examples/chart_column.py
+++ b/examples/chart_column.py
@@ -2,7 +2,7 @@
#
# An example of creating Excel Column charts with Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_combined.py b/examples/chart_combined.py
index 1f8fd52..41c3076 100644
--- a/examples/chart_combined.py
+++ b/examples/chart_combined.py
@@ -97,7 +97,9 @@ column_chart2.combine(line_chart2)
column_chart2.set_title({ 'name': 'Combine chart - secondary Y axis'})
column_chart2.set_x_axis({ 'name': 'Test number'})
column_chart2.set_y_axis({ 'name': 'Sample length (mm)'})
-column_chart2.set_y2_axis({'name': 'Target length (mm)'})
+
+# Note: the y2 properties are on the secondary chart.
+line_chart2.set_y2_axis({'name': 'Target length (mm)'})
# Insert the chart into the worksheet
worksheet.insert_chart('E18', column_chart2)
diff --git a/examples/chart_data_table.py b/examples/chart_data_table.py
index 03d6a11..4b2afdc 100644
--- a/examples/chart_data_table.py
+++ b/examples/chart_data_table.py
@@ -3,7 +3,7 @@
# An example of creating Excel Column charts with data tables using
# Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_data_tools.py b/examples/chart_data_tools.py
index e0ec63b..fb18036 100644
--- a/examples/chart_data_tools.py
+++ b/examples/chart_data_tools.py
@@ -6,7 +6,7 @@
# These include, Trendlines, Data Labels, Error Bars, Drop Lines,
# High-Low Lines and Up-Down Bars.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_date_axis.py b/examples/chart_date_axis.py
index c7dba2a..7c32f35 100644
--- a/examples/chart_date_axis.py
+++ b/examples/chart_date_axis.py
@@ -3,7 +3,7 @@
# An example of creating an Excel charts with a date axis using
# Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
from datetime import date
diff --git a/examples/chart_doughnut.py b/examples/chart_doughnut.py
index 984755d..324712d 100644
--- a/examples/chart_doughnut.py
+++ b/examples/chart_doughnut.py
@@ -2,13 +2,13 @@
#
# An example of creating Excel Doughnut charts with Python and XlsxWriter.
#
-# The demo also shows how to set segment colours. It is possible to
+# The demo also shows how to set segment colors. It is possible to
# define chart colors for most types of XlsxWriter charts
# via the add_series() method. However, Pie/Doughnut charts are a special
# case since each segment is represented as a point so it is necessary to
# assign formatting to each point in the series.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
@@ -58,7 +58,7 @@ worksheet.insert_chart('C2', chart1, {'x_offset': 25, 'y_offset': 10})
# Create an example Doughnut chart like above.
chart2 = workbook.add_chart({'type': 'doughnut'})
-# Configure the series and add user defined segment colours.
+# Configure the series and add user defined segment colors.
chart2.add_series({
'name': 'Doughnut sales data',
'categories': '=Sheet1!$A$2:$A$4',
diff --git a/examples/chart_gradient.py b/examples/chart_gradient.py
index e1056da..b780403 100644
--- a/examples/chart_gradient.py
+++ b/examples/chart_gradient.py
@@ -3,7 +3,7 @@
# An example of creating an Excel charts with gradient fills using
# Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_line.py b/examples/chart_line.py
index 748e84d..8d5419d 100644
--- a/examples/chart_line.py
+++ b/examples/chart_line.py
@@ -2,7 +2,7 @@
#
# An example of creating Excel Line charts with Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_pareto.py b/examples/chart_pareto.py
index b11cbda..8c0c932 100644
--- a/examples/chart_pareto.py
+++ b/examples/chart_pareto.py
@@ -2,7 +2,7 @@
#
# An example of creating of a Pareto chart with Python and XlsxWriter.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
diff --git a/examples/chart_pattern.py b/examples/chart_pattern.py
new file mode 100644
index 0000000..2b569b6
--- /dev/null
+++ b/examples/chart_pattern.py
@@ -0,0 +1,60 @@
+#######################################################################
+#
+# An example of an Excel chart with patterns using Python and XlsxWriter.
+#
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
+#
+import xlsxwriter
+
+workbook = xlsxwriter.Workbook('chart_pattern.xlsx')
+worksheet = workbook.add_worksheet()
+bold = workbook.add_format({'bold': 1})
+
+# Add the worksheet data that the charts will refer to.
+headings = ['Shingle', 'Brick']
+data = [
+ [105, 150, 130, 90 ],
+ [50, 120, 100, 110],
+]
+
+worksheet.write_row('A1', headings, bold)
+worksheet.write_column('A2', data[0])
+worksheet.write_column('B2', data[1])
+
+# Create a new Chart object.
+chart = workbook.add_chart({'type': 'column'})
+
+# Configure the charts. Add two series with patterns. The gap is used to make
+# the patterns more visible.
+chart.add_series({
+ 'name': '=Sheet1!$A$1',
+ 'values': '=Sheet1!$A$2:$A$5',
+ 'pattern': {
+ 'pattern': 'shingle',
+ 'fg_color': '#804000',
+ 'bg_color': '#c68c53'
+ },
+ 'border': {'color': '#804000'},
+ 'gap': 70,
+})
+
+chart.add_series({
+ 'name': '=Sheet1!$B$1',
+ 'values': '=Sheet1!$B$2:$B$5',
+ 'pattern': {
+ 'pattern': 'horizontal_brick',
+ 'fg_color': '#b30000',
+ 'bg_color': '#ff6666'
+ },
+ 'border': {'color': '#b30000'},
+})
+
+# Add a chart title and some axis labels.
+chart.set_title ({'name': 'Cladding types'})
+chart.set_x_axis({'name': 'Region'})
+chart.set_y_axis({'name': 'Number of houses'})
+
+# Insert the chart into the worksheet.
+worksheet.insert_chart('D2', chart)
+
+workbook.close()
diff --git a/examples/chart_pie.py b/examples/chart_pie.py
index da2fd61..a7b2c19 100644
--- a/examples/chart_pie.py
+++ b/examples/chart_pie.py
@@ -2,13 +2,13 @@
#
# An example of creating Excel Pie charts with Python and XlsxWriter.
#
-# The demo also shows how to set segment colours. It is possible to
+# The demo also shows how to set segment colors. It is possible to
# define chart colors for most types of XlsxWriter charts
# via the add_series() method. However, Pie/Doughnut charts are a special
# case since each segment is represented as a point so it is necessary to
# assign formatting to each point in the series.
#
-# Copyright 2013-2015, John McNamara, jmcnamara at cpan.org
+# Copyright 2013-2016, John McNamara, jmcnamara at cpan.org
#
import xlsxwriter
@@ -58,11 +58,11 @@ worksheet.insert_chart('C2', chart1, {'x_offset': 25, 'y_offset': 10})
# Create an example Pie chart like above.
chart2 = workbook.add_chart({'type': 'pie'})
-# Configure the series and add user defined segment colours.
+# Configure the series and add user defined segment colors.
chart2.add_series({
'name': 'Pie sales data',
- 'categories': '=Sheet1!A2:A4',
- 'values': '=Sheet1!B2:B4',
+ 'categories': '=Sheet1!$A$2:$A$4',
... 3979 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/xlsxwriter.git
More information about the Python-modules-commits
mailing list