Filter löschen
Filter löschen

color of "ginput"

19 Ansichten (letzte 30 Tage)
Rahma Yeni
Rahma Yeni am 17 Apr. 2012
Hello.. ^^ is possible to change the cursor's color of "ginput" when i implement it..?? cause the color is transparent, sometimes i can't see where is my cursor.. :) thank you...

Akzeptierte Antwort

Jakob Sørensen
Jakob Sørensen am 17 Apr. 2012
You can change the looks by changing cursor type...
set(gcf, 'pointer', 'crosshair');
And then you can change it back by:
set(gcf, 'pointer', 'arrow');
There is also other options than crosshair, but you can probably look that up yourself.
  2 Kommentare
Rahma Yeni
Rahma Yeni am 17 Apr. 2012
Thank you Jakob.. ^^
but, it's not change when i use "ginput"..
i hope it can change when i put some point to my axes.. how can make it like that..?? Thank you...
Jakob Sørensen
Jakob Sørensen am 18 Apr. 2012
You could use 'ButtonDownFcn' instead of 'ginput'. It's a bit more work, but makes it more customizable.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 17 Apr. 2012
Pointers are handled by the operating system, and are one-bit (black and white) with a 1 bit mask (transparent or not). It is not possible to change the pointer color.
  1 Kommentar
Rahma Yeni
Rahma Yeni am 18 Apr. 2012
Thank you for your explanation Walter.. ^^

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Visual Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by