MATLAB Answers


이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Printing a big figure

조회 수: 1(최근 30일)
Rostislav Teryaev
Rostislav Teryaev 14 Jun 2018
편집: Jan 16 Jun 2018
I have a plot with (almost) only objects created by text function. There are can be either 100 or 10^5 these objects. So, previewing this plot via standart MatLab figure window is not possible (in case of big amount of text objects), thus I decided to print it in a png file and then scale as much as I need in Photoshop (Photoshop does not freeze when I try to scale it in comparison to image viewers).
I am almost fine with that except the time of print function. It can take from 1 to 10 minutes to print an image.
My DPI and PaperPosition properties depend on amount of objects.
My question is: is there any way to improve perfomance?
For example:
1. Maybe to combine these objects to one, which will be printed faster
2. Or adjust somehow PaperPosition and DPI that I will be able to print it fast and still be able to discern object on image
3. Or maybe printing such kind of image in vector format is more beneficial?
Actually, I print a big network like this:
It has 1 graph object (dots and lines) and many objects of numbers, created by text function ( I do not use LabelNodes and LabelEdges by some reasons).

  댓글 수: 3

Jan 15 Jun 2018
This question does not concern but the speed of printing a high-resolution raster image by PhotoShop. Delivering a huge number of pixels to the printer will take a while. There is no trick in Matlab to accelerate this.
Use vector graphics like EPS or PDF to reduce the data size needed to to sent to the printer.
previewing this plot via standart MatLab figure window is not possible
Why not?
Rostislav Teryaev
Rostislav Teryaev 15 Jun 2018
Because a lot of objects will take a big amount of time to render it on a figure window. Moreover I have to zoom it in and out which is also very slow process for so many objects. By print I implyied a
function which prints a figure into image file on hard disk but not printing on paper.
Jan 16 Jun 2018
If you mention the print command, it is essential to clarify the format: -dpng creates a raster image, -depsc2 a vector graphic. So please post the code and not only a rough description.


Community Treasure Hunt

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

Start Hunting!

Translated by