MathGroup Archive 2005

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

Search the Archive

Re: SparseArray, DensityGraphics, ContourGraphics, and SurfaceGraphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54532] Re: [mg54481] SparseArray, DensityGraphics, ContourGraphics, and SurfaceGraphics
  • From: DrBob <drbob at bigfoot.com>
  • Date: Tue, 22 Feb 2005 04:24:07 -0500 (EST)
  • References: <200502210844.DAA27217@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

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