Lines appear in vector graphics import
-
- Posts: 6
- Joined: Tue Sep 02, 2014 1:10 am
- Location: Netherlands
Lines appear in vector graphics import
Hello everyone,
I am importing a vector graphics image saved by Paraview (either as pdf, svg or eps). In all cases, I see grid lines (figure attached). I don't see this in evince (figure attached) or any pdf viewer or even Adobe Illustrator. I don't know if I am importing the figure in wrong way. I searched for last 2 days but I am not able to find anything (maybe I am doing it wrong). Can anyone please tell me what I am doing wrong. Or how to get rid of these lines.
Kind Regards and thanks in advance!!
I am importing a vector graphics image saved by Paraview (either as pdf, svg or eps). In all cases, I see grid lines (figure attached). I don't see this in evince (figure attached) or any pdf viewer or even Adobe Illustrator. I don't know if I am importing the figure in wrong way. I searched for last 2 days but I am not able to find anything (maybe I am doing it wrong). Can anyone please tell me what I am doing wrong. Or how to get rid of these lines.
Kind Regards and thanks in advance!!
- Attachments
-
- Opened in evince (PDF viewer).
- evince_1.png (172.5 KiB) Viewed 3878 times
-
- File opened in inkscape
- inkscape1.jpg (181.44 KiB) Viewed 3878 times
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Lines appear in vector graphics import
Perhaps you can post a link to the pdf?
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 6
- Joined: Tue Sep 02, 2014 1:10 am
- Location: Netherlands
Re: Lines appear in vector graphics import
I think those "grid lines" are the bounding boxes of many, many, many objects. Try deselecting, after import (click in any open area of canvas) (with Selection tool).
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Lines appear in vector graphics import
The pdf is probably made with gradient meshes, that doesn't have an svg support.
You can try some development builds if they show it right.
http://www.inkscapeforum.com/viewtopic.php?f=22&t=16091
You can try some development builds if they show it right.
http://www.inkscapeforum.com/viewtopic.php?f=22&t=16091
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Lines appear in vector graphics import
There are 52222 objects in the first group. I'm typing this while Inkscape ungroups them.
It might be worth lowering the data resolution to 25% or less, if the goal is a manageable illustration for a publication or report.
It might be worth lowering the data resolution to 25% or less, if the goal is a manageable illustration for a publication or report.
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 6
- Joined: Tue Sep 02, 2014 1:10 am
- Location: Netherlands
Re: Lines appear in vector graphics import
Thanks a lot for quick reply!!
@brynn : I am still very new to Inkscape. So figuring out what you told me. But I will do that.
@Lazur URH : Thanks for suggestion. I will install development version. As I have too many figures to do the same job. And hope it works. I don't have windows machine to use Adobe. I just want to stick to inkscape.
@tylerdurden : Ungrouping and deselecting are same?? And if not can you please tell me how to do that? I want to have high quality images as I use them for poster later.
@brynn : I am still very new to Inkscape. So figuring out what you told me. But I will do that.
@Lazur URH : Thanks for suggestion. I will install development version. As I have too many figures to do the same job. And hope it works. I don't have windows machine to use Adobe. I just want to stick to inkscape.
@tylerdurden : Ungrouping and deselecting are same?? And if not can you please tell me how to do that? I want to have high quality images as I use them for poster later.
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Lines appear in vector graphics import
What you are seeing is an aliasing artifact of the display, not the image. You can zoom in greater than 10000% and the lines between the triangular objects do not get wider. When exporting to pdf for printing, they should not be an issue.
I don't think you will be hurt by reducing the sampling rate to 25% original, even if you are making a poster.
A sense of scale is shown in the attached image, each object is a fraction of the size of the first index mark.
I don't think you will be hurt by reducing the sampling rate to 25% original, even if you are making a poster.
A sense of scale is shown in the attached image, each object is a fraction of the size of the first index mark.
- Attachments
-
- zoomed quite a bit, see the status bar
- u_velo-ss.jpg (155.7 KiB) Viewed 3816 times
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 6
- Joined: Tue Sep 02, 2014 1:10 am
- Location: Netherlands
Re: Lines appear in vector graphics import
Thank you very much for reply. I see that in new version (0.91) if I remove anti-aliasing than figure looks smooth in inkscape. But when I save it as png or pdf I see the lines again. Should I reduce the quality of original file and then work in inkscape? Or I am not understanding things properly at all?
Best Regards
Best Regards
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Lines appear in vector graphics import
Well, that's unfortunate...
My general impression is that the background does not need to be high resolution. I might generate a low resolution version and see if it can be blurred in a raster format to eliminate any aliasing and imported into inkscape for adding vector elements.
Some other regulars here may have some other ideas.
My general impression is that the background does not need to be high resolution. I might generate a low resolution version and see if it can be blurred in a raster format to eliminate any aliasing and imported into inkscape for adding vector elements.
Some other regulars here may have some other ideas.

Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: Lines appear in vector graphics import
The original file was made with gradient mesh.
When you open it in inkscape, the mesh is represented with the triangles.
Each triangle is next to another one with no gaps, but renders with it because of anti-aliasing issue.
Gaps can be avoided only on vertical and horizontal edges, if they lay on the exported area's pixel grid, but will appear on the diagonals.
You can put a rectangle behind with some fill colour so that at least those gaps won't be transparent when exported to a png.
Could improve it a bit if the triangles were duplicated and blurred.
But that case, a raster copy of the original gradient mesh would be a better solution -since the blurring is a raster filter.
Once you save it as svg/pdf with inkscape, the rectangles won't be converted back to a gradient mesh, with smooth transitions.
Only some development builds can handle these meshes right.
Crystal sharp transitions, in large scales.
If the final result won't be printed in such formats, a raster copy may be an easier solution.
If possible, try to generate those as rasters with paraview.
When you open it in inkscape, the mesh is represented with the triangles.
Each triangle is next to another one with no gaps, but renders with it because of anti-aliasing issue.
Gaps can be avoided only on vertical and horizontal edges, if they lay on the exported area's pixel grid, but will appear on the diagonals.
You can put a rectangle behind with some fill colour so that at least those gaps won't be transparent when exported to a png.
Could improve it a bit if the triangles were duplicated and blurred.
But that case, a raster copy of the original gradient mesh would be a better solution -since the blurring is a raster filter.
Once you save it as svg/pdf with inkscape, the rectangles won't be converted back to a gradient mesh, with smooth transitions.
Only some development builds can handle these meshes right.
Crystal sharp transitions, in large scales.
If the final result won't be printed in such formats, a raster copy may be an easier solution.
If possible, try to generate those as rasters with paraview.
-
- Posts: 6
- Joined: Tue Sep 02, 2014 1:10 am
- Location: Netherlands
Re: Lines appear in vector graphics import
@tylerdurden : Thanks a lot for your help!
@Lazur : Thank you! Yes, I think I will save original as raster images. I had stopped doing that when I got bad images when transparency was used in paraview.
When anti-aliasing (development version) was removed, image looked fine in inkscape. Only when I save it went back to lines. Is there any reason why this happens? (just curious)
@Lazur : Thank you! Yes, I think I will save original as raster images. I had stopped doing that when I got bad images when transparency was used in paraview.
When anti-aliasing (development version) was removed, image looked fine in inkscape. Only when I save it went back to lines. Is there any reason why this happens? (just curious)
Re: Lines appear in vector graphics import
I don't know, I'm running Inkscape 0.48.4 r9939 on opensuse.
Maybe developers can tell at launchpad.
Maybe developers can tell at launchpad.
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Lines appear in vector graphics import
You could import a raster version generated by free PDFill tools (windows) or similar. The PDF-to-image tool can output 600dpi raster images nicely.
I'd generate a version of just the background and bring it into Inkscape like the linked example (which still has the other graphic objects in the background).
I placed the vector tickmarks and loops on higher layers, then deleted the 5000+ objects of the background.
With a clean raster image in the background, the other elements could be cleaned-up and additional elements added.
The file is ~2MB
https://dl.dropboxusercontent.com/s/gpp ... Raster.svg
I'd generate a version of just the background and bring it into Inkscape like the linked example (which still has the other graphic objects in the background).
I placed the vector tickmarks and loops on higher layers, then deleted the 5000+ objects of the background.
With a clean raster image in the background, the other elements could be cleaned-up and additional elements added.
The file is ~2MB
https://dl.dropboxusercontent.com/s/gpp ... Raster.svg
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 6
- Joined: Tue Sep 02, 2014 1:10 am
- Location: Netherlands
Re: Lines appear in vector graphics import
@tylerdurden : Thanks for the input. I created raster images directly from paraview today and things are working fine for 2-d plots atleast
. I have asked the question about the support on launchpad, when they reply I will post it here.
In all, thanks a lot guys for your input. Its been very helpful.
Cheers

In all, thanks a lot guys for your input. Its been very helpful.
Cheers