[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread kcrisman
Two very random thoughts: 1. You may also have a more global matplotlibrc file somewhere - that caused me no end of problems reviewing a patch once. 2. I'm not actually sure that matplotlibrc controls the colors of the lines in plots - this may be set by Sage itself directly. Can you give the

[sage-support] Re: how to import locally defined extension types?

2011-08-01 Thread john_perry_usm
Simon's solution looks like it would solve what I wanted at the time, but right now I think I will return to one file, debug everything (since things are still in a state of flux) then separate it into several files use a setup.py. Thanks for the suggestions and insight! john -- To post to

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread John H Palmieri
On Saturday, July 30, 2011 9:16:10 PM UTC-7, andres.ordonez wrote: Hi, there's something weird going on with my matplotlibrc file. Are you talking about the file $HOME/.matplotlibrc? Sage doesn't actually use that file, as far as I know. Try putting a copy in $HOME/.sage/matplotlib-1.0.1/

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread andres.ordonez
I have these matplotlibrc files: /etc/matplotlibrc /home/andres/.matplotlib/matplotlibrc /home/andres/.sage/matplotlibrc /usr/local/sage-4.6/local/lib/python2.6/site-packages/matplotlib/mpl- data/matplotlibrc I think that the only one that is valid in sage is the last one, /usr/

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread John H Palmieri
On Monday, August 1, 2011 9:22:58 AM UTC-7, andres.ordonez wrote: I have these matplotlibrc files: /etc/matplotlibrc /home/andres/.matplotlib/matplotlibrc /home/andres/.sage/matplotlibrc /usr/local/sage-4.6/local/lib/python2.6/site-packages/matplotlib/mpl- data/matplotlibrc I

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread kcrisman
On Aug 1, 1:28 pm, John H Palmieri jhpalmier...@gmail.com wrote: On Monday, August 1, 2011 9:22:58 AM UTC-7, andres.ordonez wrote: I have these matplotlibrc files: /etc/matplotlibrc /home/andres/.matplotlib/matplotlibrc /home/andres/.sage/matplotlibrc

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread andres.ordonez
Indeed, lines.thickness in matplotlibrc has no effect in the plots. Is it possible to just modify line.py and get the specified color in the plots? If so, I have several line.py and am not sure which to modify: /usr/local/sage-4.6/devel/sage-main/.hg/store/data/sage/plot/line.py.i

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread Jason Grout
On 8/1/11 12:33 PM, andres.ordonez wrote: Indeed, lines.thickness in matplotlibrc has no effect in the plots. Is it possible to just modify line.py and get the specified color in the plots? Try doing: plot.options['rgbcolor']=(0,0,0) That sets the Sage default color (what others pointed out

[sage-support] Re: Sums of Modular Symbols

2011-08-01 Thread jack
On Jul 31, 10:35 pm, D. S. McNeil dsm...@gmail.com wrote: We would like to know if certain sums of modular symbols span the space. Is this the sort of thing you had in mind? sage: M=ModularSymbols(11,2);M Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread andres.ordonez
Great! I didn't know about sage.init. Thanks! On Aug 1, 2:39 pm, Jason Grout jason-s...@creativetrax.com wrote: On 8/1/11 12:33 PM, andres.ordonez wrote: Indeed, lines.thickness in matplotlibrc has no effect in the plots. Is it possible to just modify line.py and get the specified color in

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread kcrisman
On Aug 1, 3:39 pm, Jason Grout jason-s...@creativetrax.com wrote: On 8/1/11 12:33 PM, andres.ordonez wrote: Indeed, lines.thickness in matplotlibrc has no effect in the plots. Is it possible to just modify line.py and get the specified color in the plots? Try doing:

[sage-support] Re: Optimized

2011-08-01 Thread Jason Grout
On 8/1/11 4:05 PM, William Stein wrote: On Mon, Aug 1, 2011 at 2:28 PM, Spencermalibuworkc...@gmail.com wrote: Alright, it took a lot of rewrites but the optimizer is up and running, and its really quick (the slow part is looking up and processing stock info). It allows for one to put in an

Re: [sage-support] Re: Optimized

2011-08-01 Thread William Stein
On Mon, Aug 1, 2011 at 4:43 PM, Jason Grout jason-s...@creativetrax.com wrote: On 8/1/11 4:05 PM, William Stein wrote: On Mon, Aug 1, 2011 at 2:28 PM, Spencermalibuworkc...@gmail.com  wrote: Alright, it took a lot of rewrites but the optimizer is up and running, and its really quick (the

Re: [sage-support] Re: Sums of Modular Symbols

2011-08-01 Thread D. S. McNeil
Thanks for this.  There still seems to be a manual step in going from, say, s1 = 2*(1,8) - (1,9) to  s1 = 2*b[1] - b[2] I may be misunderstanding you. Are you saying you want to enter the line s1 = 2*(1,8)-(1,9) verbatim and have it work? That I don't think I can do (unless you're

Re: [sage-support] Re: Sums of Modular Symbols

2011-08-01 Thread D. S. McNeil
.. I suppose you could even add a convenience function def b(*x): return m[x] after which sage: s = [2*b(1,8) - b(1,9), : -b(1,0) + b(1,9), : -b(1,0) + b(1,8)] sage: s [2*(1,8) - (1,9), -(1,0) + (1,9), -(1,0) + (1,8)] would work. Doug -- To post to this group, send

[sage-support] Re: Sums of Modular Symbols

2011-08-01 Thread jack
On Aug 1, 11:10 pm, D. S. McNeil dsm...@gmail.com wrote: Thanks for this.  There still seems to be a manual step in going from, say, s1 = 2*(1,8) - (1,9) to  s1 = 2*b[1] - b[2] I may be misunderstanding you.  Are you saying you want to enter the line     s1 = 2*(1,8)-(1,9)

[sage-support] Use latex tags in variable names?

2011-08-01 Thread Joon Ro
Hi, I just started using Sage, and I have a question about variable names. I skimmed through the documentation but could not find any answers. Is it possible to used latex tags in variable names so when I do show(var) I get the latex output? For example, I want to do: p_1star = var('p_1^*')

[sage-support] Re: Use latex tags in variable names?

2011-08-01 Thread John H Palmieri
On Monday, August 1, 2011 8:28:57 PM UTC-7, Joon wrote: Hi, I just started using Sage, and I have a question about variable names. I skimmed through the documentation but could not find any answers. Is it possible to used latex tags in variable names so when I do show(var) I get the