Timeline for How to set a max value to barlegend in plots in general
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 2, 2022 at 19:33 | comment | added | Bob Hanlon | Add to the BarLegend the option LegendLabel -> "whatever" | |
| Mar 2, 2022 at 18:33 | comment | added | Lucas Lopes | Also, I can put a string on the barlegend? | |
| Mar 2, 2022 at 17:57 | vote | accept | Lucas Lopes | ||
| Mar 2, 2022 at 17:57 | comment | added | Lucas Lopes | Ok! There is any way to make this colorfunctionscaling correspond to a max value? With that, we could see darker points in DATA2 in the new post that I've made mathematica.stackexchange.com/questions/264539/… | |
| Mar 2, 2022 at 17:44 | comment | added | Bob Hanlon | Unless you turn off the ColorFunctionScaling, the arguments supplied to a color function are scaled to lie between 0 and 1. The min value maps to 0 and the max value maps to 1. The BarLegend above maps this range {0, 1} to {0, 0.2}. You will see more contrast if you change the ColorFunction, e,g., Legended[ SmoothDensityHistogram[wd, .05, ColorFunction -> (cf = "Rainbow"), ColorFunctionScaling -> True, AspectRatio -> All, PlotRange -> All, Frame -> False], BarLegend[{cf, {0, 0.2}}]] | |
| Mar 2, 2022 at 17:34 | comment | added | Lucas Lopes | I think we need to set this max value in the SmoothDensityHistogram instead...So I'll move it to other Question, thanks for your help here. | |
| Mar 2, 2022 at 17:26 | comment | added | Lucas Lopes | I made an edit with other data sets because doing like your suggestion I cant see the difference in bright between a density plot with max value in 20, and a density plot with max value 0.07 setting this BarLegend with {0, 20}. | |
| Mar 2, 2022 at 4:33 | history | answered | Bob Hanlon | CC BY-SA 4.0 |