How can I add a plot over a boxplot (same axis)?
Afficher commentaires plus anciens
I have a figure with 96 boxplots that resulted from 10000 simulated forecasts. I need to plot the real observation dataset over it, but the 'hold on' command do not work. It simply plots the boxplot. My script is
figure
boxplot(xx',months,'PlotStyle','compact')
hold on
plot(months, si, 'r','LineWidth', 2)
both xx' and si have the same dimensions. xx' is 10000x97 and si 1x97.
Does someone have any idea how to include both plots in one figure??
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Box Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!