필터 지우기
필터 지우기

Scatter plot - Y-axis disaapears when points are colored

조회 수: 1 (최근 30일)
Berk
Berk 2013년 4월 16일
The following code removes the y-axis:
colors = [1 0 0
0 0.85 0.85;
0 0.7 0.7;
0 0.55 0.55;
0 0.4 0.4;
0 0.25 0.25];
X = [0.0054 0.0011 0.0018 0.0036 0.0099 0.0343];
Y = [0.3654 0.5813 0.4482 0.2458 0 0];
sizePoints = 100;
scatter(avgFPR, avgFNR, sizePoints, colors, 'fill');
The problem seems to be because of the colors: as I remove 'colors' y-axis appears again. How can I keep the colors and also the y-axis?
I am using Matlab R2012a (64-bit).
Thanks,
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 4월 16일
You probably mean X and Y instead of avgFPR and avgFNR.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 16일
This is an OpenGL problem. Switch to renderer zbuffer. Or possibly switching to
opengl software
might work.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by