histogram scale on scaterhistogram

1 view (last 30 days)
Nikoletta Stypidou
Nikoletta Stypidou on 15 Jun 2020
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!

Answers (1)

Anmol Dhiman
Anmol Dhiman on 18 Jun 2020
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 Comment
Nikoletta Stypidou
Nikoletta Stypidou on 19 Jun 2020
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).

Sign in to comment.

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!