Do not crop BarChart when using Frame instead of axes

I just found out that BarChart can be cropped using Frame , not Axes .

Example:

 data = {.2, .4, .6, 0., 0., 0.} BarChart[data] BarChart[data, Frame -> True, Axes -> False] 

Is this a sign or a mistake? If this is a function, is there an easy way to prevent cropping?

EDIT

Screenshot for each request:

enter image description here

+2
source share
2 answers

How about using PlotRange ? ...

 data = {.2, .4, .6, 0., 0., 0.} BarChart[data] BarChart[data, Frame -> True, Axes -> False, PlotRange -> {{.5, 6.5}, {0, .7}}, FrameTicks -> {None, Automatic, None, None}] 

Figure


Edit

I'm starting to think that this is really a mistake. See what happens if we just reorder the elements in the data. It confirms (but does not show the baseline) zero-height bars that it previously ignored. Please note that this time I did not have to adjust the display using PlotRange .

Bar2

+1
source

Well, that was not always the case:

enter image description here

+1
source

All Articles