draw2d: remove ticks, numbers, edges...



On 05/16/2011 03:18 PM, Edwin Woollett wrote:
>
> I have forgotten how to get a histogram (using
> draw2d) which just shows the bars and legend,
> but not the surrounding box, tic marks, and
> without the left and bottom numbers.
>
> I tried the following as a simple example:
>
> draw2d(
>      xrange = [-2,6],
>      yrange = [-4,10],
>      axis_left = false,
>      axis_bottom = false,
>      axis_top = false,
>      axis_right = false,
>      fill_density = 1,
>      key = "0",      fill_color = black,
>      bars([0,5,2]),
>      fill_density = 1,
>      key = "1",      fill_color = blue,
>      bars([4,5,2]))$
>
> but it doesn't get rid of the numbers and
> tick marks around the box.
>
> Ted Woollett
> (Using Windows Xp with Xmaxima 5.24.0)
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

I tried:

draw2d(
      xrange = [-2,6],
      yrange = [-4,10],
      axis_left = false,
      axis_bottom = false,
      axis_top = false,
      axis_right = false,
      xtics = 'none,
      ytics = 'none,
      fill_density = 1,
      key = "0",      fill_color = black,
      bars([0,5,2]),
      fill_density = 1,
      key = "1",      fill_color = blue,
      bars([4,5,2]))$

which seemed to do what you're asking.

Paul