How can I add a plot over a boxplot (same axis)?
Mostra commenti meno recenti
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??
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Box Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!