#13693: Upgrade matplotlib to 1.2.1
----------------------------------------------------------------+-----------
Reporter: jason |
Owner: jason, was
Type: task |
Status: needs_review
Priority: major |
Milestone: sage-5.10
Component: graphics |
Resolution:
Keywords: | Work
issues:
Report Upstream: N/A |
Reviewers: John Palmieri, Francois Bissey
Authors: Jason Grout, John Palmieri,Jean-Pierre Flori | Merged
in:
Dependencies: |
Stopgaps:
----------------------------------------------------------------+-----------
Changes (by jhpalmieri):
* status: needs_work => needs_review
Comment:
Okay, here's a new version of the patch. The only change is this:
{{{
#!diff
diff --git a/sage/plot/plot3d/plot_field3d.py
b/sage/plot/plot3d/plot_field3d.py
--- a/sage/plot/plot3d/plot_field3d.py
+++ b/sage/plot/plot3d/plot_field3d.py
@@ -72,8 +72,9 @@
try:
from matplotlib.cm import get_cmap
cm = get_cmap(colors)
- assert(cm is not None)
- except (TypeError, AssertionError, ValueError):
+ except (TypeError, ValueError):
+ cm = None
+ if cm is None:
if isinstance(colors, (list, tuple)):
from matplotlib.colors import LinearSegmentedColormap
cm = LinearSegmentedColormap.from_list('mymap',colors)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13693#comment:29>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.