- Setting on the graphics root (groot) impacts all new figures.
- The syntax of the property name is to smash together 'Default' Type Property
R2014b How to disable graphics smoothing by default
7 ビュー (過去 30 日間)
古いコメントを表示
Since I plot data with the objective of information extraction, and not to hang it on wall and show everyone its beauty, I would like to set the GraphicsSmoothing setting to 'off' by default. Please help me out and tell me how I can disable this forever.
0 件のコメント
回答 (1 件)
Michelle Hirsch
2014 年 10 月 22 日
Asad - Sorry that you don't like the new anti-aliased (smoothed) plots in R2014b. This has been one of the most requested graphics features for many years.
I think you might be misinterpreting the term "Graphics Smoothing" to think that it is doing more than it is. This property controls anti-aliasing, which is a technique to render smoother lines on a computer screen. Instead of representing each point on the screen as a single pixel, which can lead to jaggy lines (those of us who grew up in the era of Atari 2600 are familiar with the extreme case of aliased lines), anti-aliasing uses multiple pixels with different degrees of darkness. This results in lines which appear smoother. It does not invent data, like Excel used to do (still does?) if you told it to draw a line through points.
That said, if you still find that you don't want anti-aliased lines, you can use the standard mechanism for controlling defaults:
set(groot,'DefaultFigureGraphicsSmoothing','off')
Breaking this down:
If you want this behavior to persist across sessions of MATLAB, you could put the above command in your startup.m file.
1 件のコメント
Diogo
2015 年 3 月 5 日
Hi, I just want to make a comment on this answer. The smoothing is a really nice feature to have, but sometimes it is useful not to use it. I like to plot figures in tif format with high dpi and convert the figures to vectors in pdf format (usually a 2MB tif go to ~75KB pdf figure while remaining with the same quality). I usually can get really nice figures with previous versions of MATLAB. When there is sharp boundaries the pdf is much smaller (about 4 times smaller), but it still very high quality and you can zoom in or out without the annoying blurry colors on the edges. I don't know why even turning the text and graphics smoothing off I cannot have the same results that I was having in previous versions. In previous version lines would be continuous without smoothing. In the new version, if you turn off the smoothing the figures will have lines broken, specially the marker edges that were supposed to be a circle (if you chose 'o' marker for example). I would be glad to have the option to use legacy graphic style.
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!