MatLab2tikz Customize axis

  • MATLAB
  • Thread starter joshmccraney
  • Start date
  • #1
joshmccraney
Gold Member
2,178
124
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
    55.4 KB · Views: 530
  • Screen Shot 2016-05-20 at 11.38.52 AM.png
    Screen Shot 2016-05-20 at 11.38.52 AM.png
    53.7 KB · Views: 511

Answers and Replies

  • #2
13,578
7,566
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?
 
  • #3
joshmccraney
Gold Member
2,178
124
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.
 

Related Threads on MatLab2tikz Customize axis

  • Last Post
Replies
0
Views
52
Replies
1
Views
3K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
1
Views
2K
Replies
2
Views
3K
  • Last Post
Replies
1
Views
5K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
2K
Replies
0
Views
3K
Replies
5
Views
6K
Top