Post Closed as "off-topic" by Bob Hanlon, Edmund, m_goldberg, Carl Lange, MarcoB
3 edited body; edited title

# How to Specifyspecify resolution of a plot?

Suppose I need to plot Sin function:

Plot[Sin[x ], {x, -10 , 10 }]


Now I need to specify the resolution of the plot. I tried by using list Plot

ListPlot[Table[Sin[x ], {x, -10, 10, 0.01}], Joined -> True]


But here the x axis is different. In this case it plots from 0 to 20.

Now I have two questions,

1. How to plot a function giving the specifications
2. Is there any way to use ListPlot and get the axis as (-10,10).

# How to Specify resolution of a plot?

Suppose I need to plot Sin function:

Plot[Sin[x ], {x, -10 , 10 }]


Now I need to specify the resolution of the plot. I tried by using list Plot

ListPlot[Table[Sin[x ], {x, -10, 10, 0.01}], Joined -> True]


But here the x axis is different. In this case it plots from 0 to 20.

Now I have two questions,

1. How to plot a function giving the specifications
2. Is there any way to use ListPlot and get the axis as (-10,10).

# How to specify resolution of a plot?

Suppose I need to plot Sin function:

Plot[Sin[x ], {x, -10 , 10 }]


Now I need to specify the resolution of the plot. I tried by using list Plot

ListPlot[Table[Sin[x ], {x, -10, 10, 0.01}], Joined -> True]


But here the x axis is different. In this case it plots from 0 to 20.

Now I have two questions,

1. How to plot a function giving the specifications
2. Is there any way to use ListPlot and get the axis as (-10,10).

2 A typo in the title is corrected.

1

# How to Specify resolution of a plot

Suppose I need to plot Sin function:

Plot[Sin[x ], {x, -10 , 10 }]


Now I need to specify the resolution of the plot. I tried by using list Plot

ListPlot[Table[Sin[x ], {x, -10, 10, 0.01}], Joined -> True]


But here the x axis is different. In this case it plots from 0 to 20.

Now I have two questions,

1. How to plot a function giving the specifications
2. Is there any way to use ListPlot and get the axis as (-10,10).