Opening saved figures created using plotyy

조회 수: 2 (최근 30일)
Roy Goodman
Roy Goodman 2015년 3월 24일
편집: Star Strider 2015년 3월 24일
I created some figures using plate and saved them as .fig files. Now, I'd like to modify the figures slightly, but they don't render properly when I re-open them in MATLAB. How do I fix this, or at least, get access to the numerical data in the two curves to re-plotyy it.
  댓글 수: 2
Image Analyst
Image Analyst 2015년 3월 24일
What is "plate"?
Star Strider
Star Strider 2015년 3월 24일
It seems ‘plate’ = ‘plotyy’ + autocorrect.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2015년 3월 24일
I never heard of ‘plate’, but if MATLAB will open the .fig files, see if you can get the data from them using the plotyy handle graphics capabilities.
See specifically the sections using the
[AX,H1,H2] = plotyy(...)
construction, and the associated documentation.
Use the get function to see if you can recover them, after you open the .fig file and plot it, for example, something like:
openfig('FigureFileName.fig');
h1c = get(gca, 'Children');
Xdc = get(h1c, 'XData');
Ydc = get(h1c, 'YData');
You might be able to get the data from the .fig file figure handles after you open the figure, and then re-plot them. (If you have access to R2014a or earlier versions, it might be advisable to use them to open the files instead, since the earlier handle graphics are a bit more flexible and easier to work with.)
No promises — I have no idea how ‘plate’ structures its .fig files.
  댓글 수: 4
Roy Goodman
Roy Goodman 2015년 3월 24일
It was created last September, so 2014a or 2014b. I have both versions on the computer and get the same trouble with each.
Star Strider
Star Strider 2015년 3월 24일
편집: Star Strider 2015년 3월 24일
Can you get the data from the .fig file using get? Use R2014a first to get the information from the file. It should work better than R2014b.
Also, unless it contains sensitive information, consider attaching the .fig file here so we can have a go at it. No promises, but likely more productive than debugging the problem over Answers.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by