MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in Package Graphics`Graphics` ?

  • To: mathgroup at
  • Subject: [mg26381] Re: [mg26348] Bug in Package Graphics`Graphics` ?
  • From: BobHanlon at
  • Date: Sat, 16 Dec 2000 02:40:12 -0500 (EST)
  • Sender: owner-wri-mathgroup at

This is a workaround for restricting the PlotRange:


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 writes:

>I am very cautious in claiming to have found a bug in Mathematica, but
>here I am almost sure.
>After loading the package
>I tried to plot a simple BarChart:
>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
>Furthermore, bar edges are visible only in the range {3,10}.
>Finally, if the input list contains negative values, the bars hide the
>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?

  • Prev by Date: Question: numerical solution of nonlinear differential equation
  • Next by Date: Re: Q: Postscript problem with braces "()" (now complete)
  • Previous by thread: Bug in Package Graphics`Graphics` ?
  • Next by thread: Re: Bug in Package Graphics`Graphics` ?