Re: Bug in Package Graphics`Graphics` ?
- To: mathgroup at smc.vnet.net
- Subject: [mg26381] Re: [mg26348] Bug in Package Graphics`Graphics` ?
- From: BobHanlon at aol.com
- Date: Sat, 16 Dec 2000 02:40:12 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
This is a workaround for restricting the PlotRange: Needs["Graphics`Graphics`"]; data = {4, 10, 5, 7}; offset = 3; BarChart[data - offset, Axes -> False, Frame -> True, FrameTicks -> {Automatic, Table[{y, y + offset}, {y, 0, Max[data]}], None, None}]; For negative values, just use a Frame: BarChart[{4, 10, 5, 7, -3}, Frame -> True]; Bob Hanlon In a message dated 12/13/00 3:30:37 AM, Ludsteck at zew.de writes: >I am very cautious in claiming to have found a bug in Mathematica, but > >here I am almost sure. >After loading the package ><<Graphics`Graphics` > >I tried to plot a simple BarChart: > >BarChart[{4,10,5,7}] > >However, if I want to restrict the plot range > >BarChart[{4,10,5,7}, PlotRange->{3,10}] > >Mathematica does not respond with an error message, but >still plots in the range {0,10}. (However, the y-axis is not visible in > >{0,3}.) >Furthermore, bar edges are visible only in the range {3,10}. >Finally, if the input list contains negative values, the bars hide the > >BarLabels >which is desastrous in my application. > >I am really an adherent of Mathematica, but if I am right here I have to > >state that it is not possible to create publication quality BarCharts with > >Mathematica. (At least not with the >Add-On function BarChart.) > >Any suggestions? >