필터 지우기
필터 지우기

Printing figures without their annotations now?

조회 수: 4 (최근 30일)
Hugh Wheaton
Hugh Wheaton 2020년 5월 13일
댓글: Rik 2020년 5월 14일
For like no reason, matlab is printing figures with everything but an annotation I want on them. I have never had this problem and don't know what's happening.
Code is set up in a for loop for 6 iterations. I pre defined a 1x6 handle array, I then loop through each one and make a plot with axis scaling, limits etc. I then added an annotation for each one, and when I created a for loop to print them all to .png, for some reason the annotations just aren't included (even if I strip back all the formatting to defaults).
I've used this method several times and I have never experienced this problem so I really have absolutely no idea what's causing it.
Cheers
  댓글 수: 7
Hugh Wheaton
Hugh Wheaton 2020년 5월 14일
편집: Hugh Wheaton 2020년 5월 14일
no I don't think so. I changed whether or not matlab includes NaN in calculations once, but I switched that back shortly after. In fact, I've recently done a completely fresh install of 2019b after failing to clone my HDD to a new SSD, and yet the problem is still occurring.
Thanks for the fullfile advice, I've just switched that up, and I forgot dir was a function so I fixed that too. Unfortunately the annotations still aren't copying and if you can't recreate the issue I'm getting really frustrated because these kinds of things seem to happen every time I attempt something at matlab. It's not too important, but my OCD isn't letting this go...
What settings should I check out with regards to the renderer? I'm on a laptop running hybrid graphics processing, so any chance this could maybe have something to do with it?
Edit:
Could it be running it from an mlx file that's doing it? I've run into quite a few bugs using that feature...
Edit 2:
yep, I literally copied the entire thing into a .m file and it was fine. I assume it is just another mlx bug.
Can I just suggest that mathworld focus on their mlx feature because I keep running into bugs (one big one is that clicking "hide code" on the view layout options corrupts your file irreversibly, you have to manually copy all lines of code into a blank file using the compare function).
Rik
Rik 2020년 5월 14일
I tend to not use live scripts, so I didn't even think to check. I know Mathworks is putting a lot of time in the further development of live scripts, but I'm not an employee. So if you have suggestions and/or bug reports you should contact them directly.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by