[sage-support] Re: 2d plot functions: thickness - How thick the line is

2011-04-28 Thread clinton bowen
Yes! I wish that were stated in the sphinx documentation! On Apr 27, 8:48 pm, Jason Grout jason-s...@creativetrax.com wrote: On 4/27/11 10:10 PM, clinton bowen wrote: Hello, My question about the thickness attribute for 2d plot functions. Could somebody explain to me: 1) what does

[sage-support] Re: 2d plot functions: thickness - How thick the line is

2011-04-28 Thread clinton bowen
This does answer my question. Thank you. How can we contribute to the documentation about that. Should we forward this to matplotlib or sage? On Apr 27, 8:49 pm, kcrisman kcris...@gmail.com wrote: On Apr 27, 11:10 pm, clinton bowen clinton.bo...@gmail.com wrote: Hello, My question about

Re: [sage-support] Re: 2d plot functions: thickness - How thick the line is

2011-04-28 Thread Dan Drake
On Thu, 28 Apr 2011 at 10:00PM -0700, clinton bowen wrote: This does answer my question. Thank you. How can we contribute to the documentation about that. Should we forward this to matplotlib or sage? You want to modify the Sage documentation, it looks like. You'll need to open a trac

[sage-support] Re: 2d plot functions: thickness - How thick the line is

2011-04-27 Thread Jason Grout
On 4/27/11 10:10 PM, clinton bowen wrote: Hello, My question about the thickness attribute for 2d plot functions. Could somebody explain to me: 1) what does thickness - How thick the line is mean? this is somewhat ambiguous to me. Could somebody elaborate to me what this means (e.g.

[sage-support] Re: 2d plot functions: thickness - How thick the line is

2011-04-27 Thread kcrisman
On Apr 27, 11:10 pm, clinton bowen clinton.bo...@gmail.com wrote: Hello, My question about the thickness attribute for 2d plot functions. Could somebody explain to me: 1) what does thickness - How thick the line is mean?   this is somewhat ambiguous to me.  Could somebody elaborate to me

[sage-support] Re: 2D plot looks wrong in sage

2010-11-09 Thread Jason Grout
On 11/9/10 5:26 AM, Karsten wrote: Just as a note I have found that the problem only occurs when it is printed as png. Saving the plot as pdf works, and that is good enough for including in latex. But thanks for explaining. Well, then that is troubling, since the png and pdf outputs should be

[sage-support] Re: 2D plot looks wrong in sage

2010-11-09 Thread Karsten
One example: t=var('t') a=plot(sin(t),t,-pi,pi) a.save('test.pdf') a.save('test.png') In the pdf the function looks better, since it seems to go through (0,0) which is not the case in the png. It is even more clear to the eye when adding extra thickness to the plot: t=var('t')

[sage-support] Re: 2D plot looks wrong in sage

2010-11-08 Thread Karsten
I just tested the following: plot(arrow((-0.03,-0.03),(6,6))) which corrects the problem and makes it seem as if the arrow actually starts from (0,0). Is this intended? On 8 Nov., 23:46, Karsten karste...@gmail.com wrote: Thanks! This corrects plotting the sine and cosine functions. But there

[sage-support] Re: [2d plot] How to add arrows to the axes?

2010-04-15 Thread Jason Grout
On 04/15/2010 04:35 AM, zieglerk wrote: Hi, I'm preparing some function plots for a presentation and would finally like to add labels and arrows to the axes. I achieve the latter by sage: p = plot(sin(x), -3, 3) sage: p.show(axes_labels=['$x$', '$y$']) But oddly, there seems to be no option

[sage-support] Re: [2d plot] How to add arrows to the axes?

2010-04-15 Thread Jason Grout
On 04/15/2010 09:24 AM, Jason Grout wrote: Your points above certainly should be looked into. I'll try to look into them in a month when I have some time. I've opened up a ticket for the issues you've pointed out: http://trac.sagemath.org/sage_trac/ticket/8692 Thanks, Jason -- To post to

[sage-support] Re: 2D plot axis numbers blues

2009-08-28 Thread kcrisman
I found a work-around since I posted the question: forcing ymin/max to 0-1 made the numbers show up, somehow. Now I can't make the NO numbers plot happen again, but I got a single- -number plot happening, at least, which to me, is just as

[sage-support] Re: 2D plot axis numbers blues

2009-08-28 Thread Jason Grout
kcrisman wrote: I found a work-around since I posted the question: forcing ymin/max to 0-1 made the numbers show up, somehow. Now I can't make the NO numbers plot happen again, but I got a single- -number plot happening, at least, which to me, is just as

[sage-support] Re: 2D plot axis numbers blues

2009-08-28 Thread chuck_starchaser
I see.  I think this is standard, because in this case the axes cross at zero so each tick on the y-axis is . Apparently Jason is on top of it, but just thought I'd mention the axes did NOT cross at zero; they crossed at ( 0.0, 0.75 ), which is why I was so confused at the beginning; --I also

[sage-support] Re: 2D plot axis numbers blues

2009-08-28 Thread Jason Grout
chuck_starchaser wrote: I see. I think this is standard, because in this case the axes cross at zero so each tick on the y-axis is . Apparently Jason is on top of it, but just thought I'd mention the axes did NOT cross at zero; they crossed at ( 0.0, 0.75 ), which is why I was so

[sage-support] Re: 2D plot axis numbers blues

2009-08-28 Thread Minh Nguyen
Hi Jason, On Sat, Aug 29, 2009 at 11:03 AM, Jason Groutjason-s...@creativetrax.com wrote: SNIP P.S. What's the target release date/feature freeze date for the next version of Sage? The next release date can't be sooner than 07 September 2009. If you like, you have until mid September 2009

[sage-support] Re: 2D plot axis numbers blues

2009-08-27 Thread kcrisman
Dear Chuck, In general, it's easier for us to help with specific examples. Is there one really nasty plot you can post here, so we can try it out? Especially one without ANY numbers is troubling. That shouldn't be happening. Also, please let us know what version of Sage you are using, and on

[sage-support] Re: 2D plot axis numbers blues

2009-08-27 Thread chuck_starchaser
Thank you! In general, it's easier for us to help with specific examples.  Is there one really nasty plot you can post here, so we can try it out? Especially one without ANY numbers is troubling.  That shouldn't be happening.  Also, please let us know what version of Sage you are using, and

[sage-support] Re: 2d plot

2009-07-31 Thread MaxTheMouse
On Jul 30, 10:45 pm, surfer mailingslis...@googlemail.com wrote: sorry, I would like to obtain the curve for fixed x in (0,1). (or for fixed y in (0,1)). A general solution is to return a function of only one axis. For example, for a constant y you can do the following: def slice_y(y):

[sage-support] Re: 2d plot

2009-07-31 Thread surfer
nice, thank you David Joyner. For y=1/4 the function takes its maximum 3/16 and it's clear on the graph. Interesting for me is how does the plot of f for fixed x look like if f takes 1 as maximum? --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: 2d plot

2009-07-31 Thread Pierre
what about the following ? y=0.25 plot(lambda x : f(x, y), (0,1) ) to try different values of y on the same graph, go: sum( [plot(lambda x : f(x,y), (0,1)) for y in srange(0, 1, 0.1)]) and of course there is plot3d( lambda x, y : f(x, y), (0,1), (0,1) ) Btw it seems the maximum of

[sage-support] Re: 2d plot

2009-07-31 Thread surfer
Btw it seems the maximum of f(x,y) is 1/4, for x=y=1/2. yes it is. Thank you, Paul --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com

[sage-support] Re: 2d plot

2009-07-30 Thread Harald Schilly
sage: density_plot(f, (0,1), (0,1)) looks like an adequate visualization in 2d. h On Jul 30, 5:04 pm, surfer mailingslis...@googlemail.com wrote: Hi, could someone help me to plot the function def f(x,y):     if x=y:        return x*(1-y)     elif y=x:        return y*(1-x) for

[sage-support] Re: 2d plot

2009-07-30 Thread surfer
sage: density_plot(f, (0,1), (0,1)) looks like an adequate visualization in 2d. thanks it looks pretty, but i would like to have a curve. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Re: 2d plot

2009-07-30 Thread David Joyner
I don't understand the question. Do you want a contour plot? An implicit plot? On Thu, Jul 30, 2009 at 11:30 AM, surfermailingslis...@googlemail.com wrote: sage: density_plot(f, (0,1), (0,1)) looks like an adequate visualization in 2d. thanks it looks pretty, but i would like to have a

[sage-support] Re: 2d plot

2009-07-30 Thread surfer
sorry, I would like to obtain the curve for fixed x in (0,1). (or for fixed y in (0,1)). --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: 2d plot

2009-07-30 Thread David Joyner
I think this is with y = 1/4: sage: h = Piecewise([[(0,1/4),3*x/4],[(1/4,1),(1-x)/4]]) sage: h.plot() On Thu, Jul 30, 2009 at 4:45 PM, surfermailingslis...@googlemail.com wrote: sorry, I would like to obtain the curve for fixed x in (0,1). (or for fixed y in (0,1)).

[sage-support] Re: 2D plot with discontinuity

2009-03-10 Thread kcrisman
On Mar 10, 10:44 am, ma...@mendelu.cz ma...@mendelu.cz wrote: Hello all Maxima is much better when drawing 2D plots of functions with jump discontinuity. Sage makes a vertical lines at disontinuities, compare A=plot(1/(x^2-1),(x,-3,3)) show(A,ymax=10,ymin=-10) in sage and