histogram scale on scaterhistogram

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!

Respuestas (1)

Anmol Dhiman
Anmol Dhiman el 18 de Jun. de 2020

0 votos

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 comentario

Nikoletta Stypidou
Nikoletta Stypidou el 19 de Jun. de 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).

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 15 de Jun. de 2020

Comentada:

el 19 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by