1
$\begingroup$

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?enter image description here

$\endgroup$

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.

  • $\begingroup$ Please give a more detailed description of what you want. $\endgroup$ – Αλέξανδρος Ζεγγ Nov 14 '18 at 5:16
  • $\begingroup$ 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? $\endgroup$ – Priti Nayek Nov 14 '18 at 5:53
  • 1
    $\begingroup$ I think you want to use the PlotRange option, $\endgroup$ – Bob Hanlon Nov 14 '18 at 6:13
  • 3
    $\begingroup$ PlotRange is for both the x and the y axis $\endgroup$ – FredrikD Nov 14 '18 at 7:22
  • 1
    $\begingroup$ 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. $\endgroup$ – march Nov 15 '18 at 4:24
1
$\begingroup$

Use PlotRange as @BobHanlon suggested. For example,

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

enter image description here

Now with PlotRange

Plot[Exp[x], {x, 0, 2}, Frame -> True, PlotRange -> {{0, 1.5}, {0, 6}}]

enter image description here

$\endgroup$
  • $\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$ You have to use ErrorListPlot for that. $\endgroup$ – Sumit Nov 18 '18 at 11:19
  • $\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

Not the answer you're looking for? Browse other questions tagged or ask your own question.