color changing bar graph
古いコメントを表示
how can i plot a horozontal bar graph where the bars color change acording to a formula?
i have 5 different hights (70, 115, 164, 216, 270) each going from 0 to 130 that change intensity acording to different formula for each hight
i want to draw a horozontal bar graph with hights on y axes 0-130 on y axes and the bar changing colors accoring to the formulas
10 件のコメント
Mehmed Saad
2020 年 4 月 16 日
can you give me the formula from which you want to change the color
ralph glastonbury
2020 年 4 月 16 日
Mehmed Saad
2020 年 4 月 16 日
something like this

or this

ralph glastonbury
2020 年 4 月 16 日
Mehmed Saad
2020 年 4 月 16 日
編集済み: Mehmed Saad
2020 年 4 月 16 日
yup but i didn't get your formula
colors are in the format of [r g b], how can you get these 3 values from your formula?
Y = 0,000000272010410X^3 - 0,000071941838974X^2 + 0,004930888800712X + 1,902355241509030
ralph glastonbury
2020 年 4 月 16 日
Mehmed Saad
2020 年 4 月 16 日
color has three components [R,G,B], the formula should be such that it calculates the value of all three components for example
R = 0.15*X^2+0.12786*X^3+1.956;
G = 0.75*X^2+0.52786*X^3+0.956;
B = 0.95*X^2+0.72786*X^3+3.956;
Now that is what i want
ralph glastonbury
2020 年 4 月 16 日
Mehmed Saad
2020 年 4 月 16 日
編集済み: Mehmed Saad
2020 年 4 月 16 日
is this right? i am only change R and B values not G

ralph glastonbury
2020 年 4 月 16 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Labels and Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!