histogram scale on scaterhistogram

조회 수: 7 (최근 30일)
Nikoletta Stypidou
Nikoletta Stypidou 2020년 6월 15일
댓글: Nikoletta Stypidou 2020년 6월 19일
Hello! I am new to matlab. I am trying to create a figure using the scatterhistogram function and I am finding that the histogram scale is not consistent every time I use the function. Sometimes the histogram looks too "squished"/thin to see what is happening. I cannot find any explanation on how to adjust the size of the histograms on the function page. Does anyone know how I could fix this?
Thank you very much!

답변 (1개)

Anmol Dhiman
Anmol Dhiman 2020년 6월 18일
Hi Nikoletta,
ScatterHistogramChart Properties helps you with the controlling the behaviour of the scatterHistogram. I assume setting uniform XLimits ,YLimits and LineWidth will help you.
  댓글 수: 1
Nikoletta Stypidou
Nikoletta Stypidou 2020년 6월 19일
Thank you for taking the time to respond, however I do not think these suggestions solve my problem. XLimits and YLimits control the axes of the scatterplot, however my issue is the Y axis of the histogram (the counts per bin). Additionally, I tried LineWidth which only seems to change the thickness of each line, but not the thickness or height of the histogram in general. Please see attached an example - you will notice that the histogram on the right is so thin that it cannot be seen at all. I have noticed that this happens especially when the scales for the two variables are very different, such as in this example (-500 to 0 versus 0.2 to 1).

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by