Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
fullcrosshair

Subject: fullcrosshair

From: german

Date: 5 Oct, 2007 22:10:17

Message: 1 of 6

hi,
I want to use a cursor like fullcrosshair, but to have only
the horizontal line.
Is it possible to edit the pointer? if not, how can I make
a pointer with a full horizontal line?

thanks
german

Subject: fullcrosshair

From: carlos lopez

Date: 6 Oct, 2007 23:43:27

Message: 2 of 6

"german " <nospam@yahoo.com> wrote in message
<fe6co9$rr0$1@fred.mathworks.com>...
> hi,
> I want to use a cursor like fullcrosshair, but to have only
> the horizontal line.
> Is it possible to edit the pointer? if not, how can I make
> a pointer with a full horizontal line?
>
> thanks
> german
It is possible. You need to look for the properties of the
figure, namely with something like:
set(gcf,'Pointer','custom','PointerShapeCData',something)
where something is explained in the manuals, and is where
you can freely use your creativity ;-)
Other property which might be worth investigating is
'PointerShapeHotSpot'
Regards
Carlos

Subject: fullcrosshair

From: Yair Altman

Date: 7 Oct, 2007 07:28:37

Message: 3 of 6

"carlos lopez" <clv2clv_00000000_@adinet.com.uy> wrote in
message <fe96iv$coe$1@fred.mathworks.com>...
> "german " <nospam@yahoo.com> wrote in message
> <fe6co9$rr0$1@fred.mathworks.com>...
> > hi,
> > I want to use a cursor like fullcrosshair, but to have only
> > the horizontal line.
> > Is it possible to edit the pointer? if not, how can I make
> > a pointer with a full horizontal line?
> >
> > thanks
> > german
> It is possible. You need to look for the properties of the
> figure, namely with something like:
> set(gcf,'Pointer','custom','PointerShapeCData',something)
> where something is explained in the manuals, and is where
> you can freely use your creativity ;-)
> Other property which might be worth investigating is
> 'PointerShapeHotSpot'
> Regards
> Carlos


Look inside the setptr function for ideas/examples of how to
do this, as well as a few predefined cursor shapes that are
unavailable in set(gcf,'Pointer',...).

Note: setptr (and its sibling getptr) have been around in
Matlab for ages (at least since Matlab 5.3), but to this day
they are only partially documented (help text, but no doc)
and apparently unsupported. I really have no idea why:
Unlike moveptr (also semi-doc'ed, but which has a few quirks
and is still not ready for prime time), setptr & getptr
appear pretty stable and usable as-is.

Yair Altman
http://ymasoftware.com

Subject: fullcrosshair

From: german

Date: 9 Oct, 2007 19:36:53

Message: 4 of 6

hi
thanks for the reply.
custom pointers allow me to plot what I want but just in a
16 by 16 pixel scale. I need an horizontal line which will
extend through the whole x axis scale (similar to fullcross
hair, but without the vertical line).
setptr allow me to use more pointer designs but still
within 16 by 16 pixels scale.
do you have any ideas? where the fullcrosshair pointer
script is?

thanks
german


"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message
<fea1r5$g8f$1@fred.mathworks.com>...
> "carlos lopez" <clv2clv_00000000_@adinet.com.uy> wrote in
> message <fe96iv$coe$1@fred.mathworks.com>...
> > "german " <nospam@yahoo.com> wrote in message
> > <fe6co9$rr0$1@fred.mathworks.com>...
> > > hi,
> > > I want to use a cursor like fullcrosshair, but to
have only
> > > the horizontal line.
> > > Is it possible to edit the pointer? if not, how can I
make
> > > a pointer with a full horizontal line?
> > >
> > > thanks
> > > german
> > It is possible. You need to look for the properties of
the
> > figure, namely with something like:
> > set
(gcf,'Pointer','custom','PointerShapeCData',something)
> > where something is explained in the manuals, and is
where
> > you can freely use your creativity ;-)
> > Other property which might be worth investigating is
> > 'PointerShapeHotSpot'
> > Regards
> > Carlos
>
>
> Look inside the setptr function for ideas/examples of how
to
> do this, as well as a few predefined cursor shapes that
are
> unavailable in set(gcf,'Pointer',...).
>
> Note: setptr (and its sibling getptr) have been around in
> Matlab for ages (at least since Matlab 5.3), but to this
day
> they are only partially documented (help text, but no doc)
> and apparently unsupported. I really have no idea why:
> Unlike moveptr (also semi-doc'ed, but which has a few
quirks
> and is still not ready for prime time), setptr & getptr
> appear pretty stable and usable as-is.
>
> Yair Altman
> http://ymasoftware.com
>

Subject: fullcrosshair

From: Yair Altman

Date: 9 Oct, 2007 19:47:23

Message: 5 of 6

"german " <nospam@yahoo.com> wrote in message
<fegl8l$kg5$1@fred.mathworks.com>...
> hi
> thanks for the reply.
> custom pointers allow me to plot what I want but just in a
> 16 by 16 pixel scale. I need an horizontal line which will
> extend through the whole x axis scale (similar to fullcross
> hair, but without the vertical line).
> setptr allow me to use more pointer designs but still
> within 16 by 16 pixels scale.
> do you have any ideas? where the fullcrosshair pointer
> script is?
>
> thanks
> german


I have a File Exchange submission that does this - you can
copy & modify the relevant code from there: DataMatrix -
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16181

Yair Altman
http://ymasoftware.com

Subject: fullcrosshair

From: PopV Visitkul

Date: 17 Jul, 2009 18:40:17

Message: 6 of 6

Did you manage to do it? I'm looking to do the same thing now.
Regards

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us