Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

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"}]
share|improve this question

marked as duplicate by gpap, m_goldberg, RunnyKine, bobthechemist, Michael E2 May 20 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.

    
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

1 Answer 1

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

share|improve this answer
    
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

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