I was given MATLAB figure files with four subplots. The last subplot has two y axes, and I need to change the font size of the second y axis. I do not have the original data, only the figure files. How do I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First let’s create a figure similar to what you described, and save it to a FIG file:
Now we load the figure from file, and look for the second axis of PLOTYY. Once we have its handle, we can change any property we want.
Just keep in mind that the way PLOTYY works is by creating two superimposed axes, each with its own x/y-labels. That’s why I suppress the x-labels for the second when I change the font size, to avoid seeing two sets of labels on top of each other (each in a different font size).