Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Zero near origin of coordinates

  1. Sep 24, 2011 #1

    If you do a plot in Mathematica,

    for example

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


    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.

  2. jcsd
  3. Sep 24, 2011 #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}]]


    Plot[Sin[x], {x, -2 Pi, 2 Pi}, Epilog -> Style[Text[0], Background -> White]]
    Last edited by a moderator: Apr 26, 2017
  4. Sep 25, 2011 #3
    Last edited by a moderator: Apr 26, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook