MathGroup Archive 2005

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

Search the Archive

Re: SparseArray, DensityGraphics, ContourGraphics, and SurfaceGraphics


That may be a bug, but here's a simple fix:

sa = SparseArray[IdentityMatrix[10]];
glist = Through[{DensityGraphics, ContourGraphics,
    SurfaceGraphics}@Normal@sa]
Show /@ glist;

Bobby

On Mon, 21 Feb 2005 03:44:49 -0500 (EST), Mark Fisher <mark at markfisher.net> wrote:

> DensityGraphics works fine with SparseArray objects, but niether
> ContourGraphics nor SurfaceGraphics does. (I'm using 5.1 for Windows.)
> This seems to me like a poor design decision (if it's not a bug).
>
> sa=SparseArray[IdentityMatrix[10]];
> glist=Through[{DensityGraphics,ContourGraphics,SurfaceGraphics}[sa]];
> Show /@ glist;
>
> --Mark.
>
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: Solutions of an equation under complex form
  • Next by Date: Re: Solutions of an equation under complex form
  • Previous by thread: SparseArray, DensityGraphics, ContourGraphics, and SurfaceGraphics
  • Next by thread: Re: SparseArray, DensityGraphics, ContourGraphics, and SurfaceGraphics