Re: [sage-support] newbie: plot() questions
Jose Guzman wrote: Some time ago I wrote a Sage worksheet to get familiar with the plotting possibilities of Sage. You can find it here: www.*sage*nb.org/home/pub/399/ Actually the page does not display the graphics, if you want to have a copy of the worksheet just mail me and I can share it in sagebn.org or simply send you. Best. Jose -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [sage-support] newbie: plot() questions
Ok, this was as simple as using the 'ymin' and 'ymax' options of plot (I had done something else wrong previously when G B suggested this cause it didn't work) Ok, I was about to answer your question, but you found the solution faster. BTW I didn't find any mention of these plot options in the docs, worth adding? Some time ago I wrote a Sage worksheet to get familiar with the plotting possibilities of Sage. You can find it here: www.*sage*nb.org/home/pub/399/ You may find it interestings Best. Jose -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [sage-support] newbie: plot() questions
On Sun, 21 Mar 2010 18:35:19 +0100 Renato wrote: > On Thu, 18 Mar 2010 08:43:44 +0100 > Jose Guzman wrote: > > > Hi Nareto, > > > > would you mind to write a simple and minimal example of your f(t) > > and plot options? This would be the best way to try to help you > > > > > > > > Nareto wrote: > > > Hello, I have to plot an exponential function with vertical > > > asymptote in point tc, but > > > > > > plot(f(t), (tc - e, tc + e)); > > > > > > gives me unreadable plots for any values of e - if e is to large > > > the curvature is not apreciable (i.e. the plot is confused with > > > the axes) but if it's too small I'm getting things like 4 on > > > the y axis. > > > > > > So, how can I force the y axis range? I tried this but it doesn't > > > change anything: > > > > > > P = plot(f(t)); > > > P.set_range_axes(tc - 0.2, tc + 0.2, f(tc - 0.2), f(tc + 0.2)); > > > show(P); > > > > > > Question #2, how can I tell sage not to 'break' the axes? for > > > example, > > > > > > plot(1/(x + 3)); > > > > > > doesn't show me the last bit of the y axis, it ends approximately > > > at 0.25 > > > > > > > > > thanks for any help > > > Renato > > > > > > > > > > > > Ok, sorry for the delay. Here there is a simplified version of what > I'd like to do. I'm having difficulties in viewing a satisfactory > "zoom" level near the critical value of t (called tc in the code). > The line is there because I'd like to draw the vertical asymptote > > g(t) = exp(t)/(2*exp(t) - 1); > tc = N(ln(1/2)); > c = 0.3; > P = plot(g(t),(tc - c, tc + c), color='yellow'); > L = line([(tc,-c*10^4),(tc,c*10^4)], color='green', linestyle='--'); > P + L; > > > > any ideas? > thanks > Renato Ok, this was as simple as using the 'ymin' and 'ymax' options of plot (I had done something else wrong previously when G B suggested this cause it didn't work) BTW I didn't find any mention of these plot options in the docs, worth adding? Renato -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [sage-support] newbie: plot() questions
On Thu, 18 Mar 2010 08:43:44 +0100 Jose Guzman wrote: > Hi Nareto, > > would you mind to write a simple and minimal example of your f(t) and > plot options? This would be the best way to try to help you > > > > Nareto wrote: > > Hello, I have to plot an exponential function with vertical > > asymptote in point tc, but > > > > plot(f(t), (tc - e, tc + e)); > > > > gives me unreadable plots for any values of e - if e is to large the > > curvature is not apreciable (i.e. the plot is confused with the > > axes) but if it's too small I'm getting things like 4 on the y > > axis. > > > > So, how can I force the y axis range? I tried this but it doesn't > > change anything: > > > > P = plot(f(t)); > > P.set_range_axes(tc - 0.2, tc + 0.2, f(tc - 0.2), f(tc + 0.2)); > > show(P); > > > > Question #2, how can I tell sage not to 'break' the axes? for > > example, > > > > plot(1/(x + 3)); > > > > doesn't show me the last bit of the y axis, it ends approximately at > > 0.25 > > > > > > thanks for any help > > Renato > > > > > Ok, sorry for the delay. Here there is a simplified version of what I'd like to do. I'm having difficulties in viewing a satisfactory "zoom" level near the critical value of t (called tc in the code). The line is there because I'd like to draw the vertical asymptote g(t) = exp(t)/(2*exp(t) - 1); tc = N(ln(1/2)); c = 0.3; P = plot(g(t),(tc - c, tc + c), color='yellow'); L = line([(tc,-c*10^4),(tc,c*10^4)], color='green', linestyle='--'); P + L; any ideas? thanks Renato -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [sage-support] newbie: plot() questions
Hi Nareto, would you mind to write a simple and minimal example of your f(t) and plot options? This would be the best way to try to help you Nareto wrote: Hello, I have to plot an exponential function with vertical asymptote in point tc, but plot(f(t), (tc - e, tc + e)); gives me unreadable plots for any values of e - if e is to large the curvature is not apreciable (i.e. the plot is confused with the axes) but if it's too small I'm getting things like 4 on the y axis. So, how can I force the y axis range? I tried this but it doesn't change anything: P = plot(f(t)); P.set_range_axes(tc - 0.2, tc + 0.2, f(tc - 0.2), f(tc + 0.2)); show(P); Question #2, how can I tell sage not to 'break' the axes? for example, plot(1/(x + 3)); doesn't show me the last bit of the y axis, it ends approximately at 0.25 thanks for any help Renato -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] newbie: plot() questions
Hello, I have to plot an exponential function with vertical asymptote in point tc, but plot(f(t), (tc - e, tc + e)); gives me unreadable plots for any values of e - if e is to large the curvature is not apreciable (i.e. the plot is confused with the axes) but if it's too small I'm getting things like 4 on the y axis. So, how can I force the y axis range? I tried this but it doesn't change anything: P = plot(f(t)); P.set_range_axes(tc - 0.2, tc + 0.2, f(tc - 0.2), f(tc + 0.2)); show(P); Question #2, how can I tell sage not to 'break' the axes? for example, plot(1/(x + 3)); doesn't show me the last bit of the y axis, it ends approximately at 0.25 thanks for any help Renato -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org