Skip to content

Commit

Permalink
Merge 6d6d0a7 into fcfb937
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Jan 3, 2016
2 parents fcfb937 + 6d6d0a7 commit 228a715
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2010-2015 Nico Schlömer
Copyright (c) 2010-2016 Nico Schlömer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions matplotlib2tikz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

__author__ = 'Nico Schlömer'
__email__ = 'nico.schloemer@gmail.com'
__copyright__ = 'Copyright (c) 2010-2015, %s <%s>' % (__author__, __email__)
__copyright__ = 'Copyright (c) 2010-2016, %s <%s>' % (__author__, __email__)
__credits__ = []
__license__ = 'MIT License'
__version__ = '0.5.2'
__version__ = '0.5.3'
__maintainer__ = 'Nico Schlömer'
__status__ = 'Production'

Expand Down
2 changes: 1 addition & 1 deletion matplotlib2tikz/legend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#

import warnings

def draw_legend(data, obj):
'''Adds legend code to the EXTRA_AXIS_OPTIONS.
Expand Down
11 changes: 6 additions & 5 deletions matplotlib2tikz/line2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from . import color as mycol
from . import path as mypath

import numpy

def draw_line2d(data, obj):
'''Returns the PGFPlots code for an Line2D environment.
Expand Down Expand Up @@ -118,7 +119,7 @@ def draw_linecollection(data, obj):
linestyles = obj.get_linestyles()
linewidths = obj.get_linewidths()
paths = obj.get_paths()

for i in range(len(paths)):
path = paths[i]
if i < len(edgecolors):
Expand All @@ -135,21 +136,21 @@ def draw_linecollection(data, obj):
width = linewidths[0]

data, options = mypath.get_draw_options(data, color, None)

width = _mpl_linewidth2pgfp_linewidth(data, width)
if width:
options.append(width)

if style[0] is not None:
show_line, linestyle = _mpl_linestyle2pgfp_linestyle(style)
if show_line and linestyle:
options.append(linestyle)

# TODO what about masks?
data, cont = mypath.draw_path(obj, data, path,
draw_options=options,
simplify=False)

content.append(cont)

return data, content
Expand Down
2 changes: 1 addition & 1 deletion matplotlib2tikz/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def draw_pathcollection(data, obj):
elif obj.get_paths():
# Not sure if we need this here at all.
for path in obj.get_paths():
data, cont = _draw_path(
data, cont = draw_path(
obj, data, path, draw_options=draw_options
)
content.append(cont)
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def read(fname):
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python 2',
'Programming Language :: Python 3',
'Topic :: Multimedia :: Graphics :: Graphics Conversion'
]
)

0 comments on commit 228a715

Please sign in to comment.