Re: Draw straight line, but display zigzag line!
- To: mathgroup at smc.vnet.net
- Subject: [mg17615] Re: Draw straight line, but display zigzag line!
- From: adam.smith at hillsdale.edu
- Date: Tue, 18 May 1999 02:45:18 -0400
- Organization: Deja News - The Leader in Internet Discussion
- References: <7hohic$fvn@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
I realize your concerns about the on-screen appearance of your line. I have found a way to make it look straight. Try the following: Plot[2*x+1,{x,0,10},PlotPoints->2] One problem with this is that the axes range is changed from your original Plot[2*x+1,{x,0,10}] But this appears to give the same axes: Plot[2*x+1,{x,0,10},PlotPoints->2,PlotRange->{{0,10.2},{0,21.5}}] You can of course play with the PlotRange to suit your tastes. I should also point out that the "zig-zag" problem appears to be limited to the screen display. I printed all three forms and the hardcopy looked very straight for all of them. Maybe there is some option buried deep in the help files that I did not feel like spending the time to uncover that will make the screen version appear "straighter". I tried MaxBend, PlotPoints, PlotDivision and experimented with Compiled options but none of these seemed to fix the displayed graph. Adam Smith In article <7hohic$fvn at smc.vnet.net>, "bickel" <bickel at ms17.hinet.net> wrote: > > I have a problem about drawing a straight. > > When I draw a straight ,ex: y=2x+1. > > I use Plot[2*x+1,{x,0,10}], it actually draw a line. > > But the line is like zigzag line. > > Can I do about this problem, setup some graphic option > > or ....? > > -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own