From: Roger Jones on
How can I change the marker type/colour on a qqplot()?

I have tried things like
set(findobj(gca,'Type','patch'),'MarkerFaceColor','r','MarkerEdgeColor','r')
to no avail.

Any help would be much appreciated.

Regards.
From: Wayne King on
"Roger Jones" <leave(a)mealone.com> wrote in message <i3r7nk$6d1$1(a)fred.mathworks.com>...
> How can I change the marker type/colour on a qqplot()?
>
> I have tried things like
> set(findobj(gca,'Type','patch'),'MarkerFaceColor','r','MarkerEdgeColor','r')
> to no avail.
>
> Any help would be much appreciated.
>
> Regards.

Hi Roger, you can use handles to the plotted symbols and lines.

load gas
h = qqplot(price1);
% returns a 3x1 vector h, h(1) is the handle to the symbols
% h(2) is the handle to the solid portion of the line
% and h(3) to the dashed line

% for example
set(h(1),'marker','^','markersize',8,'markeredgecolor',[0 0 0]);
set(h(2),'linewidth',2,'color',[0 0 1]);
set(h(3),'linewidth',2,'color',[0 0 1]);


Hope that helps,
Wayne
From: Roger Jones on
Thanks Wayne, that's great.

Matt


"Wayne King" <wmkingty(a)gmail.com> wrote in message <i3r9t3$lu2$1(a)fred.mathworks.com>...
> "Roger Jones" <leave(a)mealone.com> wrote in message <i3r7nk$6d1$1(a)fred.mathworks.com>...
> > How can I change the marker type/colour on a qqplot()?
> >
> > I have tried things like
> > set(findobj(gca,'Type','patch'),'MarkerFaceColor','r','MarkerEdgeColor','r')
> > to no avail.
> >
> > Any help would be much appreciated.
> >
> > Regards.
>
> Hi Roger, you can use handles to the plotted symbols and lines.
>
> load gas
> h = qqplot(price1);
> % returns a 3x1 vector h, h(1) is the handle to the symbols
> % h(2) is the handle to the solid portion of the line
> % and h(3) to the dashed line
>
> % for example
> set(h(1),'marker','^','markersize',8,'markeredgecolor',[0 0 0]);
> set(h(2),'linewidth',2,'color',[0 0 1]);
> set(h(3),'linewidth',2,'color',[0 0 1]);
>
>
> Hope that helps,
> Wayne