Plotting multiple plots on the same graph

  • Follow


Usually when I want to plot two sets of data on a single graph, I use plot (x1, y1, x2, y2) or the plot, hold on, plot, hold off method. This works great. I recently began using lots of weibull fits and even with these wblplot, hold on, wblplot, hold off worked just as well. The problem I am having comes when I begin to censor data for Weibull fits. 

I can use probplot('weibull', Y, cens, freq) to do censoring very well and I can do this many times but I now have a set of data that has three different zones where I would like to plot the one set of data and the 3 weibull fits for the three zones. I tried probplot('weibull', Y, cens1 cens2 cens3) but of course this won't work but when I use probplot, hold on, probplot, hold off, it only keeps the last probplot I did and won't combine them.

Is there any way to plot multiple Weibull fits for the same set of data or even just do the probplot 3 times and combine the graphs? 
0
Reply Ante 12/12/2009 4:54:05 PM

Still haven't found a good way besides really sketchy photoshopping... is there just no way?

Ante
0
Reply Ante 12/16/2009 4:27:02 AM


Ante Lausic wrote:
....
> ...but when I use probplot, hold on, probplot, hold off, it only
> keeps the last probplot I did and won't combine them.

Why would you use

hold off

if you're still wanting to add further onto the same plot?

I don't have probplot() to look at, just saying...

--
0
Reply dpb 12/16/2009 5:22:39 AM

'Hold on' may not work with probplot function. But you can use matrix for m=
ultiple plots. Let's say x1 is first set of data and x2 is second set of da=
ta,=20
probplot('weibull',[x1 x2])
Note that x1 and x2 have same number of samples. Example is appeared in the=
 following link:
http://www.mathworks.com/help/stats/probplot.html


On Saturday, December 12, 2009 10:54:05 AM UTC-6, Ante Lausic wrote:
> Usually when I want to plot two sets of data on a single graph, I use plo=
t (x1, y1, x2, y2) or the plot, hold on, plot, hold off method. This works =
great. I recently began using lots of weibull fits and even with these wblp=
lot, hold on, wblplot, hold off worked just as well. The problem I am havin=
g comes when I begin to censor data for Weibull fits.=20
>=20
> I can use probplot('weibull', Y, cens, freq) to do censoring very well an=
d I can do this many times but I now have a set of data that has three diff=
erent zones where I would like to plot the one set of data and the 3 weibul=
l fits for the three zones. I tried probplot('weibull', Y, cens1 cens2 cens=
3) but of course this won't work but when I use probplot, hold on, probplot=
, hold off, it only keeps the last probplot I did and won't combine them.
>=20
> Is there any way to plot multiple Weibull fits for the same set of data o=
r even just do the probplot 3 times and combine the graphs?
0
Reply jiwoo.pak (1) 2/7/2013 10:57:21 PM

3 Replies
412 Views

(page loaded in 0.044 seconds)

Similiar Articles:













7/25/2012 2:30:07 AM


Reply: