Skip to content

Commit

Permalink
Ready for releasing v0.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyxpp committed Sep 7, 2014
1 parent 355ec4b commit ab8ea12
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ mpltex Changelog

Here you can see the full list of changes between each mpltex release.

Version 0.2
-----------

* Replace nextlinestyle with linestyle_generator.

Version 0.1.2
-------------

Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Just add one of **mpltex** decorators before your plot functions.
And it will produce images suitable for publishing in American Chemical Society (ACS).

**mpltex** also includes several helper functions to faciliate production of specific type of images.
Following codes will produce a set of line arts with cycled line styles and line markers with the help of ``mpltex.nextlinestyle`` function.
Following codes will produce a set of line arts with cycled line styles and line markers with the help of ``mpltex.linestyle_generator`` function.

.. code:: python
Expand All @@ -64,8 +64,8 @@ Following codes will produce a set of line arts with cycled line styles and line
for i in range(number_of_lines):
# The default line style is iterating over
# color, line, and marker with hollow types.
linestyle = mpltex.nextlinestyle()
ax.plot(x[i], y[i], label=str(i), **linestyle)
linestyles = mpltex.linestyle_generator()
ax.plot(x[i], y[i], label=str(i), **linestyles.next())
ax.locator_params(nbins=5) # limit the number of major ticks
ax.legend(loc='best') # show legend in a best location
Expand Down
2 changes: 1 addition & 1 deletion mpltex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

__author__ = "Yi-Xin Liu <[email protected]>"
__license__ = "BSD License"
__version__ = "0.1.2"
__version__ = "0.2"

from .general import *
from .colors import *
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def your_plot():
And it will produce images suitable for publishing in American Chemical Society (ACS).
**mpltex** also includes several helper functions to faciliate production of specific type of images.
Following codes will produce a set of line arts with cycled line styles and line markers with the help of ``mpltex.nextlinestyle`` function.
Following codes will produce a set of line arts with cycled line styles and line markers with the help of ``mpltex.linestyle_generator`` function.
.. code:: python
Expand All @@ -65,8 +65,8 @@ def your_plot():
for i in range(number_of_lines):
# The default line style is iterating over
# color, line, and marker with hollow types.
linestyle = mpltex.nextlinestyle()
ax.plot(x[i], y[i], label=str(i), **linestyle)
linestyles = mpltex.linestyle_generator()
ax.plot(x[i], y[i], label=str(i), **linestyles.next())
ax.locator_params(nbins=5) # limit the number of major ticks
ax.legend(loc='best') # show legend in a best location
Expand Down Expand Up @@ -99,7 +99,7 @@ def your_plot():

setup(
name='mpltex',
version='0.1.2',
version='0.2',
license='BSD',
description='mpltex is a python package for producing publication quality images using matplotlib.',
author='Yi-Xin Liu',
Expand Down

0 comments on commit ab8ea12

Please sign in to comment.