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.

-B

From: lyx-users <[email protected]> On Behalf Of Neal Becker
Sent: Thursday, October 1, 2020 21:46
To: LyX Users List <[email protected]>
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?

Thanks,
Neal

--
Those who don't understand recursion are doomed to repeat it
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to