Re: [sage-support] Plotting equation of two perpendicular lines

2014-04-16 Thread Michael Orlitzky
On 04/16/2014 05:35 AM, omid habibi wrote: > Thanks for reply, Can you tell me how should I change the ratio? > > On Wednesday, April 16, 2014 1:40:04 PM UTC+4:30, John Cremona wrote: > > For both graphs you have set the x-range to -10..10 but the y-ranges > are different, and the graph h

Re: [sage-support] Plotting equation of two perpendicular lines

2014-04-16 Thread John Cremona
On 16 April 2014 10:35, omid habibi wrote: > Thanks for reply, Can you tell me how should I change the ratio? > > I expect that plot? will tell you -- as I don't know without looking myself, I wil let you look! > > On Wednesday, April 16, 2014 1:40:04 PM UTC+4:30, John Cremona wrote: > >> For b

Re: [sage-support] Plotting equation of two perpendicular lines

2014-04-16 Thread omid habibi
Thanks for reply, Can you tell me how should I change the ratio? On Wednesday, April 16, 2014 1:40:04 PM UTC+4:30, John Cremona wrote: > > For both graphs you have set the x-range to -10..10 but the y-ranges are > different, and the graph has been scaled so that (as you can see from the > axes)

Re: [sage-support] Plotting equation of two perpendicular lines

2014-04-16 Thread John Cremona
For both graphs you have set the x-range to -10..10 but the y-ranges are different, and the graph has been scaled so that (as you can see from the axes) the aspect ratio is not 1:1. Try specifying equal y-ranges as well as equal x-ranges. John Cremona On 16 April 2014 08:29, omid habibi wrote:

[sage-support] Plotting equation of two perpendicular lines

2014-04-16 Thread omid habibi
Suppose we have two equations p1 = 3x+ 1 p2 = -1/3x + 3 As you may know because of slopes, these two lines must be perpendicular. It's true when I plot it on paper but when I do it in SageMath I get this: sage: p1 = plot( 3*x + 1, -10, 10) sage: p2 = plot( -1/3*x + 3, -10, 10) sage: show ( p1 +