Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Question: How to display matrixes with a tube-defined figure

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29652] Re: Question: How to display matrixes with a tube-defined figure
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Mon, 2 Jul 2001 02:20:14 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <9hh5dt$93j$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

the question about the combination of a bitmap image
with an ordinary graph was posted recently, here is my
answer again

--------------------------------------------------------------------
Hi,

If you import an image, it had the xy-box of the pixel dimensions
but you need the plane area of your contour plot. 
The simplest way to do it is

yourBitmap = Import["/export/home/kuska/mathpng2/Pictures/tigerg.png"];

ContourPlot[Sin[x*y], {x, 0, Pi}, {y, 0, Pi}, ContourShading -> False, 
  Prolog -> {yourBitmap[[1]] /. 
                 Raster[bm_, rr_, more___] :> 
                   Raster[bm, 
                    {{0, 0}, {Pi, Pi}}, (* Place here the new bound 
                                           used in the contour plot *)
                    more]}]

be sure to set the shading to false (otherwise the polygons
overlay the bitmap).  Set the bounds of the Raster[] object
to your area in the xy-plane used in the contour plot.
-------------------------------------------------------------------

You can use any 2d grpahics but you must ensure the correct
xy-Range. For 3d objects the prior conversion to a 2d graphics
may usefull.

Regards
  Jens



Heiko Pliefke wrote:
> 
> Hy,
> 
> i'm a member of an multimedia project on a german school and our team has
> the the task to make a short animated film with mathematica. my problem is
> very difficult, i think.
> 
> Our team want to animate a figure build with mathematic functions like x².
> We realized the figure with the TUBE- (or TUBE3D-) -command. Now we want
> include the name of our school in the animation. To do this, we scanned the
> school's logo and imported the gif-file to mathematica using the
> IMPORT-command. Our problem now is, that we aren't able to show our
> tube-figure and the logo (saved as a matrix) together by using the
> SHOW-command.
> Another problem is the LISTDENSITYPLOT-command. With this command the logo
> only can be plotted in black color but we want it in another one.
> 
> If anybody can help me and my team with (one of) our problems please post it
> our mail me at: heikopliefke at freenet.de
> 
> Thanks for your help,
> Heiko P.
> 
> Please excuse my english, i'm a german pupil but i tried to wrote a good
> english.


  • Prev by Date: Logic Programming
  • Next by Date: RE: Charting question
  • Previous by thread: Re: Logic Programming
  • Next by thread: RE: Charting question