Good morning.
I am plotting bar chart that I want to change the fill pattern for each bar. Can anybody help me to write the affiliated code?
This is an example of I want to plot
Thank you very much

 Respuesta aceptada

DGM
DGM el 28 de Abr. de 2022
Editada: DGM el 28 de Abr. de 2022

1 voto

7 comentarios

Zafimandimby Mampiandra
Zafimandimby Mampiandra el 28 de Abr. de 2022
When I follow the same example, it specifies that "hatchfill2 is not specified"
Undefined function 'hatchfill2' for input arguments of type 'double'.
That is the notification I get
Thanks
DGM
DGM el 28 de Abr. de 2022
You have to follow the link and download hatchfill2(). Put the files somewhere on the search path or add their location to the path using pathtool.
Zafimandimby Mampiandra
Zafimandimby Mampiandra el 28 de Abr. de 2022
Can you send me a link to download it please? I cannot find.
Thanks
DGM
DGM el 28 de Abr. de 2022
There should be a button on the right hand side that says "download"
Zafimandimby Mampiandra
Zafimandimby Mampiandra el 28 de Abr. de 2022
Thank you very much. It works now
Zafimandimby Mampiandra
Zafimandimby Mampiandra el 28 de Abr. de 2022
Can you please help me to write the related code about the "legend" to match the bar chart.
Thanks
DGM
DGM el 28 de Abr. de 2022
I see you already saw the examples on this post:
I think Simeon's example is the simpler of the two, though it would probably be easiest if you showed what your plotting code looks like so far and we can just adapt that instead.
For what it's worth, if you're having trouble getting everything from GitHub, you can just get it from here.
The legendflex() package includes getpos(), so you shouldn't need to get that separately. Just get legendflex and stick it in a folder and add the folder (and its subfolders) to the path.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Abr. de 2022

Comentada:

DGM
el 28 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by