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

Neal Becker ndbecker2 at gmail.com
Fri Oct 2 12:33:32 EDT 2020


I didn't change it from the default.  Guess I could try changing
'path.simplify_threshold'

On Fri, Oct 2, 2020 at 11:55 AM Paul Hobson <pmhobson at gmail.com> wrote:

> Neal,
>
> Do you have line simplification turned on in your rcParams?
>
> https://matplotlib.org/3.3.2/tutorials/introductory/usage.html#line-segment-simplification
> -paul
>
> On Fri, Oct 2, 2020 at 6:22 AM Neal Becker <ndbecker2 at gmail.com> wrote:
>
>> 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
>>
>

-- 
*Those who don't understand recursion are doomed to repeat it*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20201002/b941ffa8/attachment.html>


More information about the Matplotlib-users mailing list