Scatterhistogram y axis squished

13 visualizaciones (últimos 30 días)
AM
AM el 28 de Ag. de 2020
Movida: Adam Danz el 2 de Abr. de 2025
Hello, I am trying to plot data on a scatterhistogram, figure attached. The y axis comes out squished - as it goes up to 350 while the data peaks at 100. I can't figure out how to limit it to 100 instead of 350. I succeeded in getting a popup in the live editor which allowed me to delete ticks from the y axis, but I can't find it again and I didn't copy the code. Thank you for your help.
  10 comentarios
Adam Danz
Adam Danz el 28 de Ag. de 2020
This is after you've converted from categorical to numeric, right?
AM
AM el 28 de Ag. de 2020
Right, I changed it to "double".

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 28 de Ag. de 2020
Movida: Adam Danz el 2 de Abr. de 2025
The variable name is throwing me off.
In your previous comments, age_date is a table with a last_week_day column which is datetime and a weekly_cases column which is categorical.
You should be converting the age_date.weekly_cases to numeric (not the whole table) and then replacing the NaN values within that column only.
If that doesn't solve the problem, please share a representitive sample of the variables with the NaN values.
  2 comentarios
AM
AM el 28 de Ag. de 2020
Movida: Adam Danz el 2 de Abr. de 2025
This fixed it. Thanks again!!
Adam Danz
Adam Danz el 28 de Ag. de 2020
Movida: Adam Danz el 2 de Abr. de 2025
Socially-distant high five! The plot looks much better now. Don't forget to indicate somewhere that values at y=10 actually represent values that are less than 15.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Axis Labels en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by