Printing figures without their annotations now?

2 visualizzazioni (ultimi 30 giorni)
Hugh Wheaton
Hugh Wheaton il 13 Mag 2020
Commentato: Rik il 14 Mag 2020
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 Commenti
Hugh Wheaton
Hugh Wheaton il 14 Mag 2020
Modificato: Hugh Wheaton il 14 Mag 2020
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 il 14 Mag 2020
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Search Path in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by