Hi Michael, On Fri, May 1, 2009 at 4:41 AM, mabshoff <mabsh...@googlemail.com> wrote: > > > > On Apr 30, 9:28 pm, Minh Nguyen <nguyenmi...@gmail.com> wrote: >> Hi folks, > > Hi, > >> I received the following segmentation fault when trying to use the >> show command with complex_plot(): >> >> [mv...@sage ~]$ sage >> ---------------------------------------------------------------------- >> | Sage Version 3.4.1, Release Date: 2009-04-21 | >> | Type notebook() for the GUI, and license() for information. | >> ---------------------------------------------------------------------- >> sage: q = var("q") >> sage: f(q) = (q^4 - q^2 + 1) * (q^4 + q^3 + q^2 + q + 1) * (q^4 - q^3 >> + q^2 - q + 1) * (q^6 + q^5 + q^4 + q^3 + q^2 + q + 1) * (q^6 - q^5 + >> q^4 - q^3 + q^2 - q + 1) * (q^(20) - q^(18) - q^(14) - q^(12) + q^(10) >> - q^8 - q^6 - q^2 + 1) >> sage: g(q) = q^8 * (q^4 + q^2 + 1)^2 * (q^4 + 1)^5 >> sage: p = complex_plot(f/g, (-2,2), (-2,2)) >> sage: p.show(figsize=[256,256]) > > please open a ticket. I think you might be using figsize wrong, i.e. > it isn't supposed to be a list or at least it isn't in MPL.
If I do p.show(figsize=[500,500]) then *boom* and I know I'm doing something wrong as the traceback tells me so :-) [mv...@sage ~]$ sage ---------------------------------------------------------------------- | Sage Version 3.4.1, Release Date: 2009-04-21 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: q = var("q") sage: f(q) = (q^4 - q^2 + 1) * (q^4 + q^3 + q^2 + q + 1) * (q^4 - q^3 + q^2 - q + 1) * (q^6 + q^5 + q^4 + q^3 + q^2 + q + 1) * (q^6 - q^5 + q^4 - q^3 + q^2 - q + 1) * (q^(20) - q^(18) - q^(14) - q^(12) + q^(10) - q^8 - q^6 - q^2 + 1) sage: g(q) = q^8 * (q^4 + q^2 + 1)^2 * (q^4 + 1)^5 sage: p = complex_plot(f/g, (-2,2), (-2,2)) sage: p.show(figsize=[500,500]) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ... ValueError: width and height must each be below 32768 But the thing is, I was able to do p.show(figsize=[16,16]) and received a complex plot. With Sage 3.4.1, the docstring for show() says: ``figsize``- [width, height] (same for square aspect) so I thought I was allowed to pass the image width and height in as a list. <SNIP> -- Regards Minh Van Nguyen --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---