On 26-04-11 23:02, Patrick Scheibe wrote:
Hi Jasper,
my goal was to understand the behavior. I wanted to keep vector graphics for my plots and have them as pdf (for using it in say latex). Rasterizing them into nice looking images was never a problem but then all the labels which are text and the axes and axes-ticks which are perfect lines are rasterized too. I wanted to keep them as text and lines.
I understand, it is a vexing problem. I hope it won't be too long before we can get rid of it (I view it as a bug in the renderer, but it's a pretty fundamental bug, present in most renderers).
My current solution is the following:
Mathematica exports the svg polygon directives with stroke=none. I just fixed that to stroke=0.5px and set the line color to the line color of the corresponding polygon.
This gives really nice results. Then I use inkscape to convert this to a pdf file.
That's indeed a more pdf-proof way of dilating your polygons :)
I see that using inkscape only for converting svg to pdf is a bit overkill (although I only use the commandline). Maybe it's better to take for instance the cairo lib and write a program which does the conversion.
By the way: Does Inkscape use Cairo to create the rendered views that you see on the screen or has it its own implementation?
The latest release of Inkscape, as well as current trunk, does not use Cairo for rendering on screen. I think it probably does use it for pdf export, but I'm not 100% sure. And there is a Cairo based branch that is scheduled to be merged before the summer (there are a couple of nasty issues remaining, but generally it's in pretty good shape).