Zero near origin of coordinates

In summary, the conversation discusses how to plot a function in Mathematica and place the origin at zero on the axes. It is mentioned that the tick label for the origin is not displayed by default, but this can be manually set using the Epilog function. Examples of how to place the origin tick at the desired location are provided.
  • #1
sukharef
54
0
Hello!

If you do a plot in Mathematica,

for example

Plot[Sin[x], {x, -, 2 Pi}]

804c9e884652.jpg


it won't put zero near origin of coordinates. So how can do it ? I tryed actually AxesOrigin or smth like that, but it didn't help me.

Thanks!
 
Physics news on Phys.org
  • #2
The http://reference.wolfram.com/mathematica/ref/Ticks.html#ES_6_" says "A tick label on the axes origin is not displayed" even when the ticks are manually set. I think they did this because there's no nice place to really place the origin tick - unless you place it right on top of the origin.

If you want 0 at the origin try something like

Plot[Sin[x], {x, -2 Pi, 2 Pi}, Epilog -> Text[0, {0, 0}, {2, -1.5}]]

or

Plot[Sin[x], {x, -2 Pi, 2 Pi}, Epilog -> Style[Text[0], Background -> White]]
 
Last edited by a moderator:
  • #3
Simon_Tyler said:
The http://reference.wolfram.com/mathematica/ref/Ticks.html#ES_6_" says "A tick label on the axes origin is not displayed" even when the ticks are manually set. I think they did this because there's no nice place to really place the origin tick - unless you place it right on top of the origin.

If you want 0 at the origin try something like

Plot[Sin[x], {x, -2 Pi, 2 Pi}, Epilog -> Text[0, {0, 0}, {2, -1.5}]]

or

Plot[Sin[x], {x, -2 Pi, 2 Pi}, Epilog -> Style[Text[0], Background -> White]]

Thanks!
 
Last edited by a moderator:

What does "zero near origin of coordinates" mean?

"Zero near origin of coordinates" refers to the point on a coordinate system where the x and y axes intersect, and where the values of both x and y are equal to zero.

Why is the concept of zero near origin of coordinates important in science?

The concept of zero near origin of coordinates is important in science because it provides a reference point for measuring distances and positions. It allows for precise and standardized measurements, which are crucial in scientific research and experiments.

Can the zero point of a coordinate system be changed?

No, the zero point of a coordinate system is fixed and cannot be changed. It is a fundamental aspect of the coordinate system and altering it would affect all measurements and calculations using that system.

What are some applications of the concept of zero near origin of coordinates in science?

The concept of zero near origin of coordinates is used in many scientific fields, including physics, astronomy, and geography. It is essential for accurately mapping and measuring objects and phenomena in these fields.

How does the concept of zero near origin of coordinates relate to the laws of physics?

The concept of zero near origin of coordinates is closely related to the laws of physics, particularly in the study of motion and forces. It is used to define the position, velocity, and acceleration of objects in space, which are all fundamental concepts in physics.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
263
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • Nuclear Engineering
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
7
Views
968
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
Back
Top