Highlight certain regions where the value goes to 0 in Stacked Plot
40 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bhargav
el 9 de Jul. de 2024 a las 18:48
Editada: Walter Roberson
el 10 de Jul. de 2024 a las 20:59
Hi, can we highlight certain regions in stackplot where the value of a certain variable goes to zero.
I currently have
p1=stackedplot(final_log(:,["TC2","Ftot"]));
I want to highlight cerain areah where Ftot goes to Zero
Thank you.
4 comentarios
Umar
el 10 de Jul. de 2024 a las 18:02
Editada: Walter Roberson
el 10 de Jul. de 2024 a las 20:59
Hi Bhargav,
One alternative approach to creating a stacked plot without using the 'hold' function is to utilize the 'bar' function in MATLAB. An example,
data = [10 20 30; 15 25 35; 5 10 15];
% Sample data for three groups
bar(data, 'stacked');
By using the 'bar' function with the 'stacked' parameter set to 'on', you can generate a stacked bar plot easily. This method allows you to display multiple sets of data stacked on top of each other, similar to a stacked plot. Please let me know if you have further questions.
Respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!