MATLAB Answers

Info

This question is closed.

Printing a big figure

1 view (last 30 days)
Rostislav Teryaev
Rostislav Teryaev on 14 Jun 2018
Edited: Jan on 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 Comments

Jan
Jan on 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 on 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
print
function which prints a figure into image file on hard disk but not printing on paper.
Jan
Jan on 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.

Answers (0)

Sign in to answer this question.