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.

By default, the x-axis in RectangleChart is not labeled. Using Axis -> {True, True} does not help. Can I set the ticks manually?

share|improve this question
    
@R.M ticks was what was I after (I fixed the title). –  Karsten W. Sep 18 '12 at 18:55

2 Answers 2

up vote 10 down vote accepted

By default RectangleChart leaves spaces between the bars and uses categorical axes, similar to BarChart. If you set BarSpacing -> None, no space is left and you get a regular axis with a quantitative scale on it:

enter image description here

share|improve this answer
    
This example seems not to work under Mathematica 9. –  Karsten W. Mar 5 '13 at 17:07
    
@KarstenW. Thanks for pointing that out. –  Brett Champion Mar 5 '13 at 17:36

 RectangleChart[vekk = {{1, 1}, {1, 2}, {3, 4}}, 
 ChartLabels -> Placed[Flatten@vekk[[All, 2]], Axis], 
 BarSpacing -> None, FrameTicks -> {{Automatic, None}, {None, None}}, 
 Frame -> {{True, False}, {False, False}}, Ticks -> None]

Label & Ticks

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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