Clear Filters
Clear Filters

Gridline Proportions when exporting *.emf

1 view (last 30 days)
Hi,
Is it possible to fix the gridline proportions when exporting metafiles?
When I'm creating graphs and export them to MS Word it is necessary for me to use the *.emf-format to achieve good quality. Therefore I'm using the painters (vector format) renderer.
The problem is, that the gridlines ('-.') lose their proportions in Word. When I smaller the graph, the gridline's proportions don't change correctly. the dots become to short lines and the short lines become longer.
I know that i could get around this problem by using another picture format, but i'm in need of a metafile.
Greets Michael
Edit:
Here you can find an example of an original picture in Matlab and an exported emf-file in MSWord:
To use the emf-format is a requirement, which i cannot influence.
  2 Comments
Matt Fig
Matt Fig on 7 Jun 2011
How are you exporting the figure? Because I do so with Save As from the figure's File menu and the grid lines look identical in the saved file to the MATLAB figure.
Michael
Michael on 8 Jun 2011
Wheter if I use the saveas(filename,'emf') or the Save As in the File Menu, the problem is the same. So maybe you could copy the figure into MSWord. When I change the size to ~50% the problem appears. So you can tell me if you realize that too.

Sign in to comment.

Accepted Answer

Matt Fig
Matt Fig on 7 Jun 2011
I wonder if one of these would help you:

More Answers (2)

Michael
Michael on 7 Jun 2011
Thanks for your answer. Those functions are very nice. But my problem is more specific, because i need to keep the complete style of my graphs. So I just need to fix my gridlines without changing anything else. It is also necessary for me to use the emf-format.
  3 Comments
Matt Fig
Matt Fig on 7 Jun 2011
Is it necessary to use emf because that is a forma requirement, or are you just thinking that you need emf to have the quality you need (as your original post seems to indicate)?
Matt Fig
Matt Fig on 7 Jun 2011
Also, please post the images as updates to your original question, do not post another 'answer' to the question which is not really and answer at all. Thanks.

Sign in to comment.


Michael
Michael on 13 Jun 2011
Hey, thanks for your help so far. I tried another way to get along with my problem.
I wroten a function file gridder() which works with the current figure / current axes. The function disables the gridlines an redraws them by using the plot function. Works very well, as you can see in my examples.
But another Problem appears, when I create .pdf-files. The lines and dots aren't drawn correctly. I hope you will understand, what I mean when you have a look at my example files. The file contents the word.doc file, the created pdf-file and a picture-file, as well as an example matlab.fig-file and the m-file.
Examples:
https://rapidshare.com/files/2650689528/Grid_lines.rar
Greets Michael

Categories

Find more on Printing and Saving 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!