How to print a large table of symbols from MATLAB to generate a cross-line diagram?

On this website, you can create stitch graphics from images. I am trying to do this in MATLAB. I implemented everything using the Image Processing Toolbox (Reducing the number of colors, mapping the available yarn colors to the color space). I ended up with all this, the only thing I still need to do is create an output similar to these files from MATLAB, which basically shows which yarn to use for each bitmap dot of the line:

Bw

Colour

My question is how to print a table with a lot of very small boxes with color and / or character inside. It should look like in these PDFs. How to print a spreadsheet like this? Directly from MATLAB? Can I create a PDF like this in MATLAB? Do I have to export it to Excel in some way?

+2


source to share


1 answer


For the "color" PDF you linked, it looks like a pixelated image. Why don't you save each "field" as one pixel, for example, in a TIF file using imwrite(I, 'filename')

? You can then print this TIF to PDF using an appropriate scaling factor to make the pixels large enough.



For a "BW" PDF, which basically contains a large character table, it would be easiest to go through HTML or RTF file format to get the character table and then use some html2pdf or rtf2pdf converter ...

0


source







All Articles