TRTools icon indicating copy to clipboard operation
TRTools copied to clipboard

Feature Request: Rasterize PDFs

Open omansn opened this issue 4 years ago • 2 comments

Hi Melissa,

First off, thanks for the useful toolkit. I'm working with some big datasets and the vectorized pdfs that are created with compareSTR and qcSTR are sometimes too big to open. It would be great to have an option to save the PDFs in a rasterized format. it ~should~ be as easy as including rasterized=True in the plot function, but I hear savefig randomly ignores this for certain plots. If you would like, I can test it and submit a PR. let me know your thoughts on this.

Thanks, Nathan

omansn avatar May 27 '20 00:05 omansn

Hi Nathan, I'm responding on behalf of Melissa, as she probably won't get a chance to do so. That would be great if you could add that feature and submit a PR, I'll be happy to review and help with any issues that may arise. I think it would be ideal if you could expose that flag to the user as well. Please let me know if you had any questions. Best, Nima

nmmsv avatar May 27 '20 18:05 nmmsv

That would be great! Another option could be to have savefig save them as .png or another format.

gymreklab avatar May 29 '20 03:05 gymreklab