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?
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}}]
-
$\begingroup$ Thanks a lot for giving me such a type of example. $\endgroup$ – Priti Nayek Nov 15 '18 at 4:55
-
$\begingroup$ 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. $\endgroup$ – Priti Nayek Nov 18 '18 at 5:47
-
-
$\begingroup$ 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 $\endgroup$ – Priti Nayek Nov 19 '18 at 4:54
-
$\begingroup$ In my above fig I can not understand what command I will use? $\endgroup$ – Priti Nayek Nov 19 '18 at 5:05
PlotRange
option, $\endgroup$ – Bob Hanlon Nov 14 '18 at 6:13PlotRange
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. $\endgroup$ – march Nov 15 '18 at 4:24