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

LaTeX MatLab2tikz Customize axis

  1. May 20, 2016 #1


    User Avatar
    Gold Member

    Hi PF!

    I am running matlab2tikz and it is working great. However, is there a way to control what the axis look like? Right now my axis have an entire square. Anyone know a way to edit this in the tikZ file?

    I've attached two figures, the non-square one is what I would like my axis to look like and the square one is what matlab2tikz automatically generates.

    Thanks so much!


    Attached Files:

  2. jcsd
  3. May 20, 2016 #2


    Staff: Mentor

    They both look square to me.

    EDIT never mind I see that the first is non-square and prettier

    Can you control it by limiting the axis range?
  4. May 20, 2016 #3


    User Avatar
    Gold Member

    I think the best thing to do is plot the function in matlab and then run matlab2tikz and draw on top of the image in tikZ.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted