Simplify complex graph from matplotlib
Bernt.Lie at usn.no
Thu Oct 1 19:51:39 UTC 2020
I had a similar problem lately: I produced a scatterplot using matplotlib (or rather: the matplotlib back-end for Plots in Julia), and stored the file as *.svg – with a file size of some 5 MB. I tried to subsample the plot, e.g., by using only 10% of the points. Still a relatively large plot file.
In the end, I saved the file as a *.png file, which took some 150-200 kB. Not as pretty, but close enough.
From: lyx-users <lyx-users-bounces at lists.lyx.org> On Behalf Of Neal Becker
Sent: Thursday, October 1, 2020 21:46
To: LyX Users List <lyx-users at lists.lyx.org>
Subject: Simplify complex graph from matplotlib
Don't know if this is more appropriate for lyx or mpl. I have a couple of graphs with a large number of points. They were exported from matplotlib as pdf, and produced large files. After including in lyx, the resulting pdf takes a long time to load.
The plots don't really need so many points at all. Other than going back to the mpl source to plot fewer points, is there a way to fix this?
Those who don't understand recursion are doomed to repeat it
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lyx-users