Problem with transparencies and Windows 7

I have a problem when I use transparencies with R2008a installed in Windows 7.
For example if I do:
image(rand(500),'AlphaData',0.5)
hold on
plot(50:50:500,50:50:500,'ko','MarkerFaceColor','k')
hold off
The markers do not show any face color when it should be black
Any idea how to solve it without changing my windows?

 採用された回答

Walter Roberson
Walter Roberson 2012 年 1 月 13 日

1 投票

Try
zoff = eps;
plot3(50:50:500, 50:50:500, zoff + zeros(1,10), 'ko', 'MarkerFaceColor', 'k')
See http://www.mathworks.com/help/techdoc/ref/figure_props.html#Renderer subsection "OpenGL vs. Other MATLAB Renderers"
The above code works around the line-on-surface problem by moving the line to above the surface.

1 件のコメント

itahiza
itahiza 2012 年 1 月 13 日
Simply great!
It works perfectly

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by