[Matplotlib-users] Simplifying plots (reducing data points)?

fiolj fiolj at yahoo.com
Fri Oct 2 09:40:19 EDT 2020


I don't know if it is acceptable to you, but may be producing a png file
would be an option (latex would accept it).
Regards,
	Juan

El 10/2/20 a las 10:21 AM, Neal Becker escribió:
> I produced a line plot as:
> ax.plot (x, y, '.')
> and saved as pdf.
> 
> Both x and y were large vectors, resulting in a large pdf, and when
> incorporated into a LaTeX document, the resulting pdf takes a long time
> to open.
> 
> Other than my manually decimating the vectors:
> ax.plot (x[::100], y[::100], '.')
> 
> Is there some way within mpl to simplify plots?  Or perhaps
> post-processing the pdf?
> 
> Thanks,
> Neal
> 
> -- 
> /Those who don't understand recursion are doomed to repeat it/
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
> 


More information about the Matplotlib-users mailing list