New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade matplotlib to 1.2.1 #13693
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
I'm trying this out. A few quick comments:
The ones in colors.py are all of the form
and the ones in graphics.py are similar. These are easy to fix, of course. Other failures:
Why is this failing now? Was there a change in the format of the legend? The error in plot_field3d.py is |
comment:4
Wow, sorry, that was really sloppy on my part. This is definitely needs work right now. |
comment:5
Those printing issues are weird. I wonder if that's from the upgrade to IPython 0.13.1? |
comment:6
I've uploaded a new spkg that should fix the two issues with the spkg. |
comment:7
I think I get the printing issues with both the old and the new IPython. See /scratch/palmieri/sage-5.4.rc4-13693/ on sage.math for a build with a stock 5.4.rc4 plus this spkg. |
comment:8
I hope we can get this into Sage -- version 1.2 has support for PGF/TikZ output which opens up some pretty amazing opportunities with SageTeX. (Not that I will have time to implement that in the near future, but getting this upgrade in is a necessary first step.) |
comment:9
See also streamplots - for #10775. |
comment:10
Definitely would be nice. I had seen the failures before in sage-on-gentoo before forcing 1.1.0. I will see if I can dedicate some time to it this week. |
comment:11
Regarding the failures: I can easily fix all of them except the ones in plot.py:
For the first one ( |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:14
I was just doing the same thing this evening to try random Cygwin stuff. I guess we should look for 1.2.1. |
This comment has been minimized.
This comment has been minimized.
comment:15
Updated spkg at: |
comment:16
Not sure if it's the update wihch changed something but I have no failures in plot.py on my 5.9.beta1 install. I'm putting this back to needs_review though I could not run "make ptestlong" yet cause the install I have access to is kind of borken because of ATLAS black magic. |
comment:17
Replying to @jpflori:
Same for me, too. I'll try |
comment:18
Has anyone manually checked the images connected to the failing doctests from before, just to make sure we're not missing a problem? |
comment:19
I had a look at the q1 one to spot the problem but it looked fine (blue sine and other curve, axes, little box with a blue segment and trig, no None anywhere) and was confused and then indeed there was no failing doctest. |
comment:20
I also looked at the examples by hand, and they looked fine (as opposed to with the 1.2.0 spkg). So I'm happy with the spkg. If people are happy with my patch, can we give this a positive review? |
comment:21
I think the patch is all fine. I had to check if it was the intended behavior for plot_field3d.py (monochrome 3d field, I guess it can be useful sometimes). |
Changed author from Jason Grout to Jason Grout, John Palmieri,Jean-Pierre Flori |
Reviewer: John Palmieri, Francois Bissey |
This comment has been minimized.
This comment has been minimized.
comment:24
I'm assuming the patch should be applied... |
This comment has been minimized.
This comment has been minimized.
comment:25
Yes I should have done the clean up of the description. |
comment:26
This is very wrong and should be fixed:
I know this problem isn't caused by this patch, but since it is easy to fix, you should fix it. |
comment:27
For example, you could do:
|
comment:29
Okay, here's a new version of the patch. The only change is this: 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) |
fixes for failures except for plot.py |
comment:30
Attachment: trac_13693-part1.patch.gz I'm going to restore the positive review, also; you can view my change as a positive review of Jeroen's suggestion... |
Merged: sage-5.10.beta0 |
comment:32
As a followup: the new version of matplotlib seems to be causing an issue with saving graphs in pdf. See: https://groups.google.com/forum/?fromgroups=#!topic/sage-devel/6l9Z4y5rCuM |
Changed reviewer from John Palmieri, Francois Bissey to John Palmieri, François Bissey |
Matplotlib 1.2.1 is released now: http://matplotlib.1069221.n5.nabble.com/ANN-matplotlib-1-2-1-release-td40752.html
spkg: http://sage.math.washington.edu/home/jpflori/matplotlib-1.2.1.spkg
apply: attachment: trac_13693-part1.patch
CC: @kcrisman @jpflori
Component: graphics
Author: Jason Grout, John Palmieri,Jean-Pierre Flori
Reviewer: John Palmieri, François Bissey
Merged: sage-5.10.beta0
Issue created by migration from https://trac.sagemath.org/ticket/13693
The text was updated successfully, but these errors were encountered: