histogram scale on scaterhistogram

2 次查看(过去 30 天)
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 中查找有关 Data Distribution Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by