You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pgf backend doesn't work well with very large numbers #1857
When plotting data with very large values (in my use case I have around 10^55), the pgf backend produces files on which latex chokes saying:
! Number too big.
13653335517
866810233117889238902434402615404068235693260800.000000in
l.97 ...8902434402615404068235693260800.000000in}}
%
I can only go up to 2147483647='17777777777="7FFFFFFF,
so I'm using that number instead of yours.
From a quick look at the code, it apparrently just sets the clipping rectangle and just passes then numbers through otherwise. I suppose some clipping should happen in the backend itself.
@pwuertz : I haven't looked into this in depth, but thought I might provide a pointer: matplotlib does have algorithms to clip paths to a rectangle that may be useful here. See Path.iter_segments which has a clip kwarg.
Activity
mdboom commentedon Mar 26, 2013
@pwuertz : I haven't looked into this in depth, but thought I might provide a pointer: matplotlib does have algorithms to clip paths to a rectangle that may be useful here. See
Path.iter_segmentswhich has aclipkwarg.pwuertz commentedon Mar 26, 2013
Thanks for the hint mdboom!
@elenril: Does that patch fix the problem you are seeing or can you post an example that triggers the error?
elenril commentedon Mar 28, 2013
@pwuertz thanks for the fix, it seems to work for me.
Merge pull request #1858 from pwuertz/pgf_path_clip