Remove colorbar border but keep tick labels
Mostrar comentarios más antiguos
I'm needing to remove the outline around my colorbar. When I set the colorbar edgecolor to none (hcb.EdgeColor = 'none'), it does remove the outline, but it also removes my YTickLabels. Any idea why it's doing so and how to maintain my labels while removing the outline around the colorbar?
2 comentarios
Shubham
el 3 de Ag. de 2023
Hi John
Can you try adjusting the LineWidth property of the colorbar's axis?
By setting "hcb.LineWidth" to very small value ,I think you can effectively remove the outline of the colorbar while keeping the tick labels visible. You cannot keep it to 0 because it will give an error. I tried this on my end, but I am not sure if this is what you want to do.
John Cruce
el 3 de Ag. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Colorbar en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
