Filter löschen
Filter löschen

Is there a property such as 'Ticks' for colorbars?

4 Ansichten (letzte 30 Tage)
Rafet
Rafet am 17 Dez. 2014
Kommentiert: Adam am 17 Dez. 2014
Hi,
I wonder if there is a property such as 'Ticks' or 'TickLabels' for colorbars. Because MATLAB says:
Error using colorbar (line 192)
Unknown property 'Ticks'.
Despite I got that error in the link below, it seems possible to use 'Ticks' property.
Why I cannot use this property with MATLAB 2014a?
rft
  1 Kommentar
per isakson
per isakson am 17 Dez. 2014
Bearbeitet: per isakson am 17 Dez. 2014
Doc says
h = colorbar(___) returns the colorbar object. Use h to set
properties of the colorbar after it is created.
Note: Starting in R2014b, the colorbar function returns a colorbar
object. In previous releases it returns an axes object.
AFAIK: With R2014a it should be possible, if you have not activated HG2.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Rafet
Rafet am 17 Dez. 2014
I found my answer on help, I think it may be a version difference.
Because colorbar in MATLAB 2014a has 'YTick' property instead of 'Ticks' and it is just the same in execution.
  1 Kommentar
Adam
Adam am 17 Dez. 2014
Yeah, in R2014a a colourbar is effectively an axes. In R2014b it is its own class type.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Colormaps 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