Graphs aren't showing up well when imported in to other programs - can I thicken lines?
Show older comments
All of my graphs look really poor when I save them as image files and put them into a word processing document. I've tried a few different image file types - jpeg, png, and even lossless tif.
The weird thing is that when I import them into Mathematica (which I'm using as a word processor due to it's abilities to write equations really well) the images look blurred. But when I import them into photoshop cs they're super sharp - and the lines appear to be too thin. This makes the lines disappear depending on how far in the zoom is.
Is there a way to get Matlab to increase the thickness of the lines? It's happening to all of the lines - the graph surround, the plot lines themselves, the legend - all of it.
2 Comments
Daniel Shub
on 12 Dec 2011
What word processing program are you using? Is it an on screen issue, or do you have problems with hard copy print outs?
Matt Fig
on 2 Nov 2012
All of my graphs look really poor when I save them as image files and put them into a word processing document. I've tried a few different image file types - jpeg, png, and even lossless tif.
The weird thing is that when I import them into Mathematica (which I'm using as a word processor due to it's abilities to write equations really well) the images look blurred. But when I import them into photoshop cs they're super sharp - and the lines appear to be too thin. This makes the lines disappear depending on how far in the zoom is.
Is there a way to get Matlab to increase the thickness of the lines? It's happening to all of the lines - the graph surround, the plot lines themselves, the legend - all of it.
Accepted Answer
More Answers (2)
the cyclist
on 12 Dec 2011
Two thoughts:
- Yes, you can increase the line thickness of most lines using property handles. For example:
h = plot(1:10)
set(h,'LineWidth',3)
will make the plotted line thicker. (You can similarly make the axes themselves thicker, etc., if you need to.)
- It might also be resolution issue. You could try increasing the resolution of the output:
print('-dpng','-r600','Test.png')
Bjorn Gustavsson
on 12 Dec 2011
0 votes
In addition to thickening the lines you should consider saving your plots to eps - then you get the benefits of having your images in vector format so they scale better.
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!