MathGroup Archive 2009

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

Search the Archive

Re: Extracting contour values from ContourPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100818] Re: Extracting contour values from ContourPlot
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Sun, 14 Jun 2009 21:21:25 -0400 (EDT)
  • References: <h12gg4$ect$1@smc.vnet.net>

You can use the option ContourLabels -> All to label the contours. A
legend such as in multiple-line plots doesn't make sense for contour
plots as it would require every contour line to be distinct (with
varying colors and/or dashing) which woulde be dead ugly.

Cheers -- Sjoerd

On Jun 14, 11:39 am, dg <davide.guari... at gmail.com> wrote:
> I have spent an hour researching this group and online, with no
> definitive answer.
>
> The problem: I have an nxm matrix of z values that I want to plot with
> List(Contour|Density)Plot together with a legend that shows the
> *actual* values of the contours used in the plot. (Seems like a pretty
> basic thing to me....). I know how to draw a nice legend, that's not
> the problem.
>
> I have found a way to do it: I can specify the contours and plot range
> explicitly. But what I really want is not to have to do this, and rely
> on the semi-intelligent mechanism of Mathematica to pick an appropriate n=
umber
> of contours and their values, THEN use those to draw the legend.
>
> It seems that there is no way to do this. That is, there is no way to
> extract the actual contour values used in the plot. I found a
> ColorBarPlot package which however does not work in Mathematica 7:
>   <http://library.wolfram.com/infocenter/MathSource/7030/>
>
> Is it really not possible to do
> this?



  • Prev by Date: Re: mergeSort with ReplaceRepeated
  • Next by Date: Re: differentiation operator
  • Previous by thread: Extracting contour values from ContourPlot
  • Next by thread: Re: Extracting contour values from ContourPlot