MathGroup Archive 2010

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

Search the Archive

Re: image is not graphics

  • To: mathgroup at
  • Subject: [mg110878] Re: image is not graphics
  • From: Patrick Scheibe <pscheibe at>
  • Date: Sat, 10 Jul 2010 03:59:04 -0400 (EDT)


<sarcasm> usually I never work with this strange image stuff, so it's no
wonder that I never came across this error message.</sarcasm>

I personally like to have a difference between an image, which is
basically a matrix of values and a graphics, which is in Mathematicas
case often a set of lines, points, surfaces, etc in a coordinate system.

For an image it is not clear from the start in what coordinate system
the matrix lies. That's why the former Graphics[Raster[]] contained a
parameter to tell the underlying bounding box.

> I'll be grateful to anybody who will help me here,
> but really this kind problem is happening more and more often - I
> believe that some rethinking of the graphics would be appreciated...

Maybe you should consider that there are people who have a different
understanding of the underlying paradigm and that it's sometimes better
just to ask and not to question the whole idea:

img = Import[
gr = DensityPlot[Sin[x]*Sin[y], {x, -Pi, Pi}, {y, -Pi, Pi}, 
       ImageMargins -> None, PlotRangePadding -> None, 
       Frame -> False]; 
ImageResize[ImageCompose[img, {gr, 0.8}], 150]

Hope this helps,

  • Prev by Date: Re: Any idea how to parallelize this small code construct
  • Next by Date: Re: image is not graphics
  • Previous by thread: Re: image is not graphics
  • Next by thread: Re: image is not graphics