|
"Camille Couzi" <camillecouzi@yahoo.fr> wrote in message <i4h1st$kj$1@fred.mathworks.com>...
> "Camille Couzi" <camillecouzi@yahoo.fr> wrote in message <i4gqgk$ent$1@fred.mathworks.com>...
> > "Oliver Woodford" <o.j.woodford.98@cantab.net> wrote in message <i4g7fa$cd2$1@fred.mathworks.com>...
> > > "Camille Couzi" wrote:
> > > > 1 more question: I have seted the naN value to black. this color appear in the colorbar, just on the bottom of the colorbar. is there a way not to see this black color, so that my colorbar begins at the real minimum value (not NaN)
> > >
> > > Camille,
> > >
> > > When I try:
> > >
> > > data = peaks(256);
> > > data(rand(size(data))<0.01) = NaN;
> > > sc(data, 'jet', [0 0 0]);
> > > colorbar
> > >
> > > I do not see the color black at the bottom of the colorbar. If you change the NaN color to red you will not see red either.
> > >
> > > I updated sc yesterday. Make sure you are using the latest version so we are using the same code.
> > >
> > > Regards,
> > > Oliver
> >
> > Hi Oliver,
> > In fact I had downloaded apparently a old version of sc, I just went to your page and downloaded the newest version, which is a complete folder (the one I downloaded yesterday was a single sc.m file).
> > I will try with this and tell you the results when I get them.
> > Thanks again!
>
>
>
> Hi Oliver,
> Well, I have tried it with all the suggestions you gave me and that work great! xis on, labels, no black color on the colorbar...
> Nevertheless, I have a little problem. I have a buttondownfcn defined in my GUI, which displays a vertical line where you click and plot the corresponding profile (values of z) on another axe. When I have my subplot made by imagesc that work perfectly (but I don't have all the advantages of the sc, of course), but when I use sc, and I click on my subplot, then nothing happens (like if the buttondownfc where disabled by sc), and on the toolbar I cn see that the colorbar button is pushed, active.
> can you help me fixing that...
> thank you so much for all your help, your function is really really fantastic though!!!
Hi Camille
I'm surprised to hear about the button callback not working. If you email me directly the minimal amount of code required to replicate the problem, then I'll take a look.
Thanks,
Oliver
|