About 2D plotting [closed]

In the following pic I want to show the error bar plotting with some given data: Y axis: 5.86*10^(-8) with error .58*10^(-8) and X axis: 0.1 to 2 (that means there is a range), 2.56*10^(-8) with error 0.25*10^(-8) and X axis: 2 to 5.0, etc. What command I will use? closed as off-topic by m_goldberg, corey979, bbgodfrey, march, ÖskåNov 15 '18 at 6:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, corey979, bbgodfrey, march, Öskå
If this question can be reworded to fit the rules in the help center, please edit the question.

• Please give a more detailed description of what you want. – Αλέξανδρος Ζεγγ Nov 14 '18 at 5:16
• Actually in my plotting I am only varying the X axis according of which Y axis is varying automatically. It starts from -0.96 along Y axis. But if I want to show this variation from zero value of Y axis then what command I will use? – Priti Nayek Nov 14 '18 at 5:53
• I think you want to use the PlotRange option, – Bob Hanlon Nov 14 '18 at 6:13
• PlotRange is for both the x and the y axis – FredrikD Nov 14 '18 at 7:22
• Look up PlotRange in the documentation. Under "Basic Examples", the second example shows you what the proper syntax is for specifying the plot ranges for both x and y axes. Use the documentation! It's very good. – march Nov 15 '18 at 4:24

Use PlotRange as @BobHanlon suggested. For example,

Plot[Exp[x], {x, 0, 2}, Frame -> True] Now with PlotRange

Plot[Exp[x], {x, 0, 2}, Frame -> True, PlotRange -> {{0, 1.5}, {0, 6}}] • Thanks a lot for giving me such a type of example. – Priti Nayek Nov 15 '18 at 4:55
• My another question is how I can plot error bar by taking the different ranges of x axis with respect to certain values of y axis with error. – Priti Nayek Nov 18 '18 at 5:47
• You have to use ErrorListPlot for that. – Sumit Nov 18 '18 at 11:19
• Suppose my data are along Y axis: 5.86 with error .58 within the range of X axis as 0.1 to 2. In the similar way 2.56 with error 0.25 within the range 2 to 5. Then how can I plot. Please give me an example – Priti Nayek Nov 19 '18 at 4:54
• In my above fig I can not understand what command I will use? – Priti Nayek Nov 19 '18 at 5:05