MATLAB Can I Customize the Axis Appearance in Matlab2tikz?

  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Axis
AI Thread Summary
The discussion centers on using matlab2tikz to generate TikZ figures from MATLAB plots. The user, Josh, seeks advice on how to modify the axis appearance, specifically to avoid the default square shape generated by matlab2tikz. He shares two figures, indicating a preference for a non-square axis. Participants suggest that limiting the axis range may help achieve the desired look. Additionally, one user recommends plotting the function in MATLAB first and then using matlab2tikz to overlay the desired adjustments in TikZ.
member 428835
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!

Josh
 

Attachments

  • Screen Shot 2016-05-20 at 11.38.43 AM.png
    Screen Shot 2016-05-20 at 11.38.43 AM.png
    50.7 KB · Views: 618
  • Screen Shot 2016-05-20 at 11.38.52 AM.png
    Screen Shot 2016-05-20 at 11.38.52 AM.png
    26.9 KB · Views: 598
Physics news on Phys.org
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?
 
jedishrfu said:
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?

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.
 
Back
Top