Discussion:
[Matplotlib-users] svg format graph: lines out of box
liu lily
2015-03-13 10:43:48 UTC
Permalink
Hi, all:

I try to save a graph with svg format, but the lines crosses the
boundary, what is wrong with it? and how to deal with it? thanks!
liu lily
2015-03-13 10:51:35 UTC
Permalink
strange, it seems the pic above is normal? so I send it again
Post by liu lily
I try to save a graph with svg format, but the lines crosses the
boundary, what is wrong with it? and how to deal with it? thanks!
liu lily
2015-03-13 10:53:28 UTC
Permalink
OK, it seems that this is due to my picture browser application. I take a
snapshot, as in the attachment.
Post by liu lily
strange, it seems the pic above is normal? so I send it again
Post by liu lily
I try to save a graph with svg format, but the lines crosses the
boundary, what is wrong with it? and how to deal with it? thanks!
Jens Nielsen
2015-03-13 10:59:39 UTC
Permalink
Which program is that screenshot from? It is likely due to a bug in that
render. Since is displays normally in the browser. The plot lines are
clipped behind the background but that obviously doesn't work correctly in
that case. Not sure what can be done with in from the matplotlib side

best
Jens
Post by liu lily
OK, it seems that this is due to my picture browser application. I take a
snapshot, as in the attachment.
Post by liu lily
strange, it seems the pic above is normal? so I send it again
Post by liu lily
I try to save a graph with svg format, but the lines crosses the
boundary, what is wrong with it? and how to deal with it? thanks!
------------------------------------------------------------
------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Fabrice Silva
2015-03-13 12:41:00 UTC
Permalink
Post by Jens Nielsen
Which program is that screenshot from? It is likely due to a bug in that
render. Since is displays normally in the browser. The plot lines are
clipped behind the background but that obviously doesn't work correctly in
that case. Not sure what can be done with in from the matplotlib side
Seems that viewers based on librsvg (for example EOG) are not rendering
well the clip path. It is the case with your file, where a "global" clip
path (object p08fb201ce0) normally applies on the Line2D objects
("line2d_*" objects)
--
Fabrice
Fabrice Silva
2015-03-13 12:50:29 UTC
Permalink
Post by Fabrice Silva
Post by Jens Nielsen
Which program is that screenshot from? It is likely due to a bug in that
render. Since is displays normally in the browser. The plot lines are
clipped behind the background but that obviously doesn't work correctly in
that case. Not sure what can be done with in from the matplotlib side
Seems that viewers based on librsvg (for example EOG) are not rendering
well the clip path. It is the case with your file, where a "global" clip
path (object p08fb201ce0) normally applies on the Line2D objects
("line2d_*" objects)
https://bugs.launchpad.net/ubuntu/+source/librsvg/+bug/1207538

I did not find a relative bug report upstream (in librsvg), even if
several bugs relates to clip troubles.
--
Fabrice Silva
Laboratoire de Mécanique et d'Acoustique UPR CNRS 7051
31 Chemin Joseph Aiguier, 13402 Marseille cedex 20
(+33)4 9116 4034 - ***@lma.cnrs-mrs.fr
Loading...