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
    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!
     
  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}]]

    or

    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
    Thanks!
     
    Last edited by a moderator: Apr 26, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Zero near origin of coordinates
  1. Nearly diagonal matrix (Replies: 3)

Loading...