フィルターのクリア

white grid on black axes?

4 ビュー (過去 30 日間)
Razvan
Razvan 2012 年 11 月 29 日
Hi,
How can I put a white grid on black axes in a figure? If I try
figure
set(gca, 'Color', 'k')
grid on
then the grid is not visible and I don't know which property sets its color...
Thanks,
Razvan

回答 (1 件)

Matt Fig
Matt Fig 2012 年 11 月 29 日
set(gca,'col','k','xcol','w','ycol','w')
  2 件のコメント
Razvan
Razvan 2012 年 11 月 29 日
I tried this before, but this changes the color of the x/yticks too. Is it possible to keep those black? (without opening another axes with the transparent background and black labels). I want to obtain something like Fig. 1 from here: http://www.nature.com/nsmb/journal/v19/n11/full/nsmb.2424.html
Thanks
Matt Fig
Matt Fig 2012 年 11 月 29 日
You might have mentioned that you tried this to avoid wasting time. I don't think you can decouple the tick color from the grid color.

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

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by