This question already has an answer here:

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?

  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 E2 May 20 '14 at 15:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Would that fit you? $\endgroup$ – Öskå May 20 '14 at 10:18
  • $\begingroup$ 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. $\endgroup$ – Jitka May 20 '14 at 12:47
  • $\begingroup$ Check the image in my second comment to see if it fits you $\endgroup$ – Öskå May 20 '14 at 12:51
  • $\begingroup$ 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}}] $\endgroup$ – Jitka May 20 '14 at 13:00
  • $\begingroup$ OOPS sorry - yes. How did you get it? $\endgroup$ – Jitka May 20 '14 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 }}]

Mathematica graphics

  • $\begingroup$ 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 "}. $\endgroup$ – Jitka May 20 '14 at 13:55
  • $\begingroup$ @Jitka Ooops, correct. Edited :) $\endgroup$ – Öskå May 20 '14 at 14:03
  • $\begingroup$ 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.. :) $\endgroup$ – Jitka May 20 '14 at 14:20
  • $\begingroup$ Thanks. It seems the refresh did not work earlier on. $\endgroup$ – Jitka May 20 '14 at 14:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.