Oct-27-2020, 08:26 AM
I have been running various tests and searches since my post.
The standard output (save) for matplotlib is .png.
What i did not know is that when Pillow is installed, you can also use .jpg. (Without doing any extra import at all)
I happen to have Pillow, so i did the test with exactly the same code, just with the extension changed.
Instantaneous ! Like it was before.
So my conclusion must be that in this case (FPDF) jpgs are much much faster.
Worth examining if this can be generalised to other types of apps with matplotlib involved.
Paul
The standard output (save) for matplotlib is .png.
What i did not know is that when Pillow is installed, you can also use .jpg. (Without doing any extra import at all)
I happen to have Pillow, so i did the test with exactly the same code, just with the extension changed.
Instantaneous ! Like it was before.
So my conclusion must be that in this case (FPDF) jpgs are much much faster.
Worth examining if this can be generalised to other types of apps with matplotlib involved.
Paul