# Custom ticks in distribution chart [duplicate]

I am trying to just get simple logarithmic ticks to the distribution chart, and failing... It is unhappy with any FrameTicks format I try (sparing -> Automatic). What am I doing wrong?

DistributionChart[
Log[RandomReal[ExponentialDistribution[100], 50]],
Frame -> True, ChartStyle -> LightBlue,
FrameTicks -> {{{{Log[0.001], "0.001"}, {Log[0.01],"0.01"}}, None}, {None, None}},
ChartElementFunction -> "HistogramDensity",
ChartLabels -> {"s "}, BaseStyle -> {FontSize -> 14, FontFamily -> "Helvetica"}]

-

## marked as duplicate by gpap, m_goldberg, RunnyKine, bobthechemist, Michael E2May 20 at 15:17

Would that fit you? –  Öskå May 20 at 10:18
Yes I've seen this - but it is a rather complicated set of rules that seems like a heavy overkill for the problem (and I failed to adapt it). Interestingly, using Show[] and specifying FrameTicks inside Show[D-chart, FrameTicks-> blabla] somewhat works after modifying the label as well; yet it is a pain as I have a large array of charts, where most work just fine without the need for the log scale. –  Jitka May 20 at 12:47
Check the image in my second comment to see if it fits you –  Öskå May 20 at 12:51
This is the workaround using Show, and modifying the Label. I guess it will do..: Show[DistributionChart[ Log[RandomReal[ExponentialDistribution[100], 50]], FrameLabel -> {"s ", ""}, ChartElementFunction -> "HistogramDensity", BaseStyle -> {FontSize -> 14, FontFamily -> "Helvetica"}], FrameTicks -> {{{{Log[0.001], "0.001"}, {Log[0.01], "0.01"}}, None}, {None, None}}] –  Jitka May 20 at 13:00
OOPS sorry - yes. How did you get it? –  Jitka May 20 at 13:02

Based on Customizing FrameTicks in DistributionChart here is what you can do:

DistributionChart[Log[RandomReal[ExponentialDistribution[100], 50]],
Frame -> True, ChartStyle -> LightBlue,
ChartElementFunction -> "HistogramDensity", FrameLabel -> {"s "},
BaseStyle -> {FontSize -> 14, FontFamily -> "Helvetica"}] /.
Rule[FrameTicks, __] ->
Rule[FrameTicks, {{{{Log[0.001], "0.001"}, {Log[0.01], "0.01"}}, None}, {None, None }}]


-
Yep that works! Thanks! Though I guess the mechanism is the same like in Show[Dchart, CustomLabelSpecification] - also here one needs to change the ChartLabels to FrameLabel -> {"s "}. –  Jitka May 20 at 13:55
@Jitka Ooops, correct. Edited :) –  Öskå May 20 at 14:03
Where, where? :) It seems like a minor nuisance, yet I;ve got charts where there is more than one distribution in one D-chart, and then it works not with the FrameLabel... Many thanks, anyway! I hope the artistic editors will be somewhat tolerant, given this is just in supplementary info.. :) –  Jitka May 20 at 14:20
Thanks. It seems the refresh did not work earlier on. –  Jitka May 20 at 14:39