Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1994
*January
*February
*March
*April
*May
*June
*July
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1994

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

Search the Archive

Re: ListContourPlot3D ?

  • To: MathGroup at yoda.physics.unc.edu
  • Subject: Re: ListContourPlot3D ?
  • From: twj (Tom Wickham-Jones)
  • Date: Tue, 12 Apr 1994 09:55:30 -0500

John Ehrlinger writes.


>I am wondering if anyone has seen or developed a ContourPlot command that
>can plot 3 dimensional lists of data.  I get fantastic results with
>ListContourPlot[plotData, Contours->cons] but the axis are in data point
>units instead of units related to my data.  Does anyone have a solution for
>me? 


There is a bug in the package that causes the axes to have the
wrong values.   This is very easy to fix directly in the package 

and will be fixed in the next version.   The package is called
ContourPlot3D.m and is found in the Packages/Graphics directory.


The fix is to find the two rules for GetMesh.  The second one reads...


GetMesh[ mesh_, dims_] :=
    If[ Length[ mesh] === 3 && MatrixQ[ mesh, And[ Integer[#],  
Positive[#]]&],
        mesh, Transpose[ {{1,1,1}, dims}]]


this should be changed to


GetMesh[ mesh_, dims_] :=
    If[ Length[ mesh] === 3 && MatrixQ[ mesh, NumberQ],
        mesh, Transpose[ {{1,1,1}, dims}]]


the other rule for GetMesh should be left unaltered.

This will cure the problem with axes.   If someone has problems
applying this fix I can mail a fixed package to them.


While on the subject of ListContourPlot3D, does anyone who uses it find
it inconvenient to prepare data on a regular grid?   Would it be useful
to have a three-dimensional triangulation algorithm that would allow
the plotting of contours for some other arrangement of data?


Tom Wickham-Jones
WRI 









  • Prev by Date: index problem
  • Next by Date: Re: Change color of GridLines in Show?
  • Previous by thread: ListContourPlot3D ?
  • Next by thread: Re: ListContourPlot3D ?