Skip to content

Commit b415c00

Browse files
committed
bug in legend plotting
1 parent 2b196c8 commit b415c00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name='simpleplotlib',
55
packages=['simpleplotlib'],
6-
version='0.13',
6+
version='0.14',
77
description='A matplotlib wrapper focused on beauty and simplicity',
88
author='Matthew K. Mukerjee',
99
author_email='[email protected]',
1010
url='https://github.com/mukerjee/simpleplotlib',
11-
download_url='https://github.com/mukerjee/simpleplotlib/tarball/0.13',
11+
download_url='https://github.com/mukerjee/simpleplotlib/tarball/0.14',
1212
license='MIT License',
1313
keywords=['matplotlib', 'plots', 'beauty', 'simplicity'],
1414
classifiers=[

simpleplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def plot(x, y, my_options={}, y2=None):
445445
box.width, box.height * options.y.axis.stretch])
446446

447447
if 'styles' not in options.legend.toDict() and \
448-
'labels' not in options.legend.options.toDict():
448+
'labels' in options.legend.options.toDict():
449449
handles, labels = axes[0].get_legend_handles_labels()
450450
labels, handles = zip(*sorted(zip(labels, handles),
451451
key=lambda t: int(t[0])))

0 commit comments

Comments
 (0)