Borrar filtros
Borrar filtros

Orient pie chart in clock wise direction

14 visualizaciones (últimos 30 días)
Poulomi Ganguli
Poulomi Ganguli el 21 de Jul. de 2023
Editada: Voss el 21 de Jul. de 2023
Hello:
In generally, pie chart shows anti-clock wise orientation with its shades. How to orient it to clock wise direction?

Respuesta aceptada

Voss
Voss el 21 de Jul. de 2023
X = [1 3 0.5 2.5 2];
Anti-clockwise (original):
pie(X)
Clockwise:
h = pie(X);
set(h(2:2:end),{'HorizontalAlignment'},get(h(end:-2:2),{'HorizontalAlignment'}))
set(gca(),'XDir','reverse')
  3 comentarios
Poulomi Ganguli
Poulomi Ganguli el 21 de Jul. de 2023
Thank you!
Voss
Voss el 21 de Jul. de 2023
Editada: Voss el 21 de Jul. de 2023
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Pie Charts 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