Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
c202812
supress ipynb files
rmorshea Aug 6, 2015
9d4092e
todo list
rmorshea Jul 20, 2015
0edf017
refactoring with new workflow
rmorshea Jul 21, 2015
f73f7b6
transform refactoring : see TODO
rmorshea Jul 23, 2015
8b91ade
transform refactoring : see TODO
rmorshea Jul 23, 2015
ff69573
revert .gitignore
rmorshea Jul 23, 2015
602ce41
remove ipynb_checkpoints
rmorshea Jul 23, 2015
97167ac
see TODO
rmorshea Jul 23, 2015
52fdc79
see TODO
rmorshea Jul 23, 2015
de152bc
see TODO
rmorshea Jul 23, 2015
ae5b5ba
transform implamented
rmorshea Jul 30, 2015
5f58d90
progress update
rmorshea Jul 30, 2015
a8a1f18
see TODO
rmorshea Aug 1, 2015
664c02a
last update of refactor
rmorshea Aug 1, 2015
0275157
ignore refactor
rmorshea Aug 1, 2015
e258cd2
last update to refactor
rmorshea Aug 1, 2015
a14f83b
comment change
rmorshea Aug 2, 2015
e238441
rebase with origin/master (up to date with upstream/master)
rmorshea Aug 2, 2015
97f0532
add figure traitlet
rmorshea Aug 5, 2015
e1d976d
shrink file
rmorshea Aug 5, 2015
d85e2c1
progress towards full test suite pass
rmorshea Aug 14, 2015
b6d3e45
errors reduced to pickling and ref counts
rmorshea Aug 14, 2015
be7f591
update rebase
rmorshea Aug 14, 2015
5609b44
fix memory leak in Artist
rmorshea Aug 14, 2015
871388d
fix memory leaks in test_quiver.py
rmorshea Aug 14, 2015
4030397
fix exdict inheritance
rmorshea Aug 15, 2015
5a2160f
fix pickling
rmorshea Aug 15, 2015
b436bee
update traitlets
rmorshea Aug 15, 2015
593e34c
remove print statement
rmorshea Aug 15, 2015
4b6195c
resolve pickling
rmorshea Aug 16, 2015
d11236c
update exdict
rmorshea Aug 16, 2015
1debbd0
simple performance test
rmorshea Aug 16, 2015
bbf1c89
update TODO progress report
rmorshea Aug 16, 2015
709bdac
refactor visible and animated
rmorshea Aug 17, 2015
867899c
shrink file
rmorshea Aug 17, 2015
cfb0713
refactor alpha, but failed alpha blending in agg
rmorshea Aug 17, 2015
e9c8489
refactor rasterize, pickable, evenston
rmorshea Aug 18, 2015
a2e6676
update rebase
rmorshea Aug 18, 2015
299ceb2
FIX: revert changes to gc calls
tacaswell Aug 18, 2015
93945ab
fix memory leak
rmorshea Aug 18, 2015
9934482
see TODO
rmorshea Aug 21, 2015
22e4b0c
change property updates via name
rmorshea Aug 23, 2015
9b65ee0
see TODO
rmorshea Aug 25, 2015
9528a83
base artist refactor complete: see TODO
rmorshea Aug 25, 2015
f69490b
fix sketch_params/path_effects default
rmorshea Aug 25, 2015
afddefe
fix setp/getp, change forced callbacks
rmorshea Aug 25, 2015
cd1d60a
reintroduce traitlets test
rmorshea Aug 26, 2015
89caa0f
fix typo
rmorshea Sep 8, 2015
7717e07
update rebased commits
rmorshea Sep 8, 2015
57131b2
add traitlets as test dep
rmorshea Sep 8, 2015
6aacb91
simplify old value store for forced callbacks
rmorshea Sep 9, 2015
4cf88ff
use new traitlets api (has quiver memory leaks)
rmorshea Sep 16, 2015
bb02b38
add @retrieve decorator
rmorshea Sep 18, 2015
a43cdf9
correct private get
rmorshea Oct 2, 2015
be3de2f
now requires most revent version of traitlets
rmorshea Oct 5, 2015
340df20
reintroduce mute context manager, and begin uncommenting legacy sette…
rmorshea Oct 6, 2015
84ac0ff
edit traitlets as test dep
rmorshea Oct 6, 2015
7dc256a
finish uncommenting setters/getters
rmorshea Oct 8, 2015
d895089
MNT: minor fixes
tacaswell Oct 8, 2015
6ba2c89
TST: use bleeding edge branch for traitlets
tacaswell Oct 8, 2015
0064153
pep8 fixes
rmorshea Oct 9, 2015
ffe9d09
final pep8 fixes
rmorshea Oct 9, 2015
bdf6622
traitlet warning supression
rmorshea Oct 9, 2015
08a6db7
fix pylab example
rmorshea Oct 12, 2015
0d936ed
supress more warnings
rmorshea Oct 14, 2015
9d76e5a
supress more warnings
rmorshea Oct 14, 2015
3826b49
correct impropper validate usage
rmorshea Nov 2, 2015
abba50b
correct after rebase
rmorshea Nov 20, 2015
d8f65db
setattr in SimpleChainedObjects
rmorshea Nov 22, 2015
1917a2d
fix travis.yml after rebase
rmorshea Nov 22, 2015
86a9b69
misc edits, mark as changed only if setter is used
rmorshea Nov 23, 2015
40d5b49
change traitlets warn message
rmorshea Dec 2, 2015
0d1eb25
COMPRESS
rmorshea Mar 9, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MNT: minor fixes
Fix sundry import/py3 compatibility issues
  • Loading branch information
tacaswell authored and rmorshea committed Nov 27, 2015
commit d8950897744e1126f2ec6fa424a2b961f2ec6a46
8 changes: 1 addition & 7 deletions lib/matplotlib/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
from .traitlets import (Instance, Configurable, TransformInstance, Bool, Undefined, Union,
BaseDescriptor, getargspec, PrivateMethodMixin, Float, TraitError,
Unicode, Stringlike, Callable, Tuple, List, observe, validate, default,
retrieve)
retrieve, _traitlets_deprecation_msg)

from urlparse import urlparse

# Note, matplotlib artists use the doc strings for set and get
# methods to enable the introspection methods of setp and getp. Every
Expand Down Expand Up @@ -1709,8 +1708,3 @@ def kwdoc(a):
return '\n'.join(ArtistInspector(a).pprint_setters(leadingspace=2))

docstring.interpd.update(Artist=kwdoc(Artist))

def _traitlets_deprecation_msg(name):
msg = ("This has been deprecated to make way for IPython's Traitlets."
" Please use the '%s' TraitType and Traitlet event decorators.")
return msg % name
8 changes: 4 additions & 4 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# really belong.
from matplotlib.markers import TICKLEFT, TICKRIGHT, TICKUP, TICKDOWN
from matplotlib.markers import CARETLEFT, CARETRIGHT, CARETUP, CARETDOWN

from .cbook import mplDeprecation
from .traitlets import observe, _traitlets_deprecation_msg


Expand Down Expand Up @@ -584,14 +584,14 @@ def get_window_extent(self, renderer):
@observe('axes')
def _axes_changed(self, change):
new = change['new']
Artist._axes_changed(self, change)
Artist._axes_changed(self, change)
if new is not None:
if new.xaxis is not None:
self._xcid = new.xaxis.callbacks.connect('units',
self.recache_always)
self.recache_always)
if new.yaxis is not None:
self._ycid = new.yaxis.callbacks.connect('units',
self.recache_always)
self.recache_always)

def set_data(self, *args):
"""
Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from matplotlib.externals import six
from matplotlib.externals.six.moves import map, zip

import warnings
import math

import matplotlib as mpl
Expand All @@ -17,6 +17,7 @@
from matplotlib import docstring
import matplotlib.transforms as transforms
from matplotlib.path import Path
from .cbook import mplDeprecation

from matplotlib.bezier import split_bezier_intersecting_with_closedpath
from matplotlib.bezier import get_intersection, inside_circle, get_parallels
Expand Down
15 changes: 10 additions & 5 deletions lib/matplotlib/traitlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ class Stringlike(Unicode):
info_text = 'string or unicode interpretable'

def validate(self, obj, value):
if not isinstance(value, (str,unicode)):
if not isinstance(value, six.text_type):
if hasattr(value,'__unicode__'):
value = unicode(value)
value = six.text_type(value)
elif hasattr(value, '__str__'):
value = str(value)
return super(Stringlike,self).validate(obj,value)
Expand Down Expand Up @@ -385,7 +385,7 @@ def validate(self, obj, value):
elif isinstance(value, str) and value in self.named_colors:
value = self.validate(obj, self.named_colors[value])
in_range = True

if in_range:
# Convert to hex color string
if self._metadata['as_hex']:
Expand All @@ -397,12 +397,17 @@ def validate(self, obj, value):

# If no alpha provided, use default_alpha, also round the output
if len(value) == 3:
value = tuple(np.round((value[0], value[1], value[2],
value = tuple(np.round((value[0], value[1], value[2],
self._metadata['default_alpha']),5).tolist())
elif len(value) == 4:
# If no alpha provided, use default_alpha
value = tuple(np.round(value,5).tolist())

return value

self.error(obj, value)
self.error(obj, value)

def _traitlets_deprecation_msg(name):
msg = ("This has been deprecated to make way for IPython's Traitlets."
" Please use the '%s' TraitType and Traitlet event decorators.")
return msg % name