MathGroup Archive 2005

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

Search the Archive

Using BarChart in a Widget

  • To: mathgroup at
  • Subject: [mg56461] Using BarChart in a Widget
  • From: "Brett Patterson" <muckle.moose at>
  • Date: Tue, 26 Apr 2005 01:33:17 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


Can someone please help to diagnose this problem:

I can't get a BarChart plot to display in an ImageLabel Widget.

When I display a ListPlot graphic in an ImageLabel Widget using the
following test code, the result is correct:

  Widget["Panel", {
       Widget["ImageLabel", {
          "data" ->
      Script[ExportString[ ListPlot[{0, 1, 2},
        DisplayFunction ->
          Identity], "GIF",  ConversionOptions -> {"
              Transparency" -> GrayLevel[1]}]] }]
       } ]

However, when I change the plot function to BarChart, the widget
doesn't work anymore and there is no graphic displayed, only the
expression is printed:

  Widget["Panel", {
       Widget["ImageLabel", {
          "data" ->
        Graphics`Graphics`"]; ExportString[ BarChart[{0, 1,
          2}, DisplayFunction ->
             Identity], "
              GIF",  ConversionOptions -> {"Transparency" -> GrayLevel[
              1]}]] }]
       } ]

Brett Patterson

  • Prev by Date: Re: multiple choice IF condition
  • Next by Date: Re: diagonalizzation routine
  • Previous by thread: Re: Re: Re: odd mathematica blindspot
  • Next by thread: Re: Using BarChart in a Widget