Axes resolution problems using VideoWriter

3 visualizaciones (últimos 30 días)
Paul Fishback
Paul Fishback el 22 de Mzo. de 2015
I'm facing some issues trying to improve the resolution of graph axes when creating an .avi file. Each frame in the file consists of a bar graph, where the horizontal axes labels involve text, e.g. "1A", "2A",...."44E" and where no label consists of more than 3 characters.
I start with the following:
writerObj = VideoWriter('awesome.avi');
writeObj.FrameRate=.1;
writeObj.Quality=100;
open(writerObj);
Within a loop I create each bar graph and add the frame to the video frame sequence:
frame=getframe(gcf);
writeVideo(writerObj,frame);
After the loop I close the writer object:
close(writerObj);
Everything works fine in terms of creating the video, but the resolution of the text on the horizontal axes, when I play back in either Windows Media Player (on my PC) or QuickTimePlayer (on my MAC) isn't yet satisfactory. I've tried adjusting the font size and using .mp4 format as well but to no avail.
Each frame in the video consists of a bar graph surrounded by a grey border. If I could just "stretch" the graph horizontally within the border, I'd be fine.

Respuestas (0)

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by