Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4404 > unrolled thread

Re: Map legend

Started byHeike Gramberg <heike.gramberg@gmail.com>
First post2011-08-15 00:18 +0000
Last post2011-08-16 05:30 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Map legend Heike Gramberg <heike.gramberg@gmail.com> - 2011-08-15 00:18 +0000
    Re: Map legend clansa <dauphinester@gmail.com> - 2011-08-16 05:30 +0000

#4404 — Re: Map legend

FromHeike Gramberg <heike.gramberg@gmail.com>
Date2011-08-15 00:18 +0000
SubjectRe: Map legend
Message-ID<j29old$793$1@smc.vnet.net>
Setting the labels in ShowLegend to ToString[min] and ToString[max] 
instead of " min" and " max" should work.

Heike.

On 14 Aug 2011, at 14:14, clansa wrote:

> Hello,
> I make this program to illustrate catastrophs (don1) by a map :
> Print["type de catastrophe : ", n4]
> quant = Quantile[don1, {5/100, 2/5, 3/5, 95/100}]
> abs[x_] :=
> Which[x == 0., GrayLevel[1.], x > 0. && x < quant[[1]],
>  GrayLevel[0.80], x > quant[[1]] && x < quant[[2]], GrayLevel[0.65],
>  x > quant[[2]] && x < quant[[3]], GrayLevel[0.50],
>  x > quant[[3]] && x < quant[[4]], GrayLevel[0.35], x > quant[[4]],
>  GrayLevel[0.]]
> val = Transpose@{CountryData[], don1};
> fig = Graphics[{abs[#[[2]]], EdgeForm[{Thin, Gray}],
>      CountryData[#[[1]], {"SchematicPolygon", "Robinson"}]} & /@ val,
>    ImageSize -> {600, 600}];
> max = Max[don1]
> min = Min[don1]
> Needs["PlotLegends`"]
> ShowLegend[fig, {GrayLevel[1 - #] &, 6, " min", " max",
>  LegendPosition -> {1.1, -.4}}]
>
> What is the solution to obtain automatic value for "max" and "min" on
> the ShowLegend instruction
>
> Thanks
>
> A. Dauphin=E9
> Geographer
>

[toc] | [next] | [standalone]


#4432

Fromclansa <dauphinester@gmail.com>
Date2011-08-16 05:30 +0000
Message-ID<j2cv92$hhc$1@smc.vnet.net>
In reply to#4404
On 15 ao=FBt, 02:18, Heike Gramberg <heike.gramb...@gmail.com> wrote:
> Setting the labels in ShowLegend to ToString[min] and ToString[max]
> instead of " min" and " max" should work.
>
> Heike.
>
> On 14 Aug 2011, at 14:14, clansa wrote:
>
>
>
>
>
>
>
> > Hello,
> > I make this program to illustrate catastrophs (don1) by a map :
> > Print["type de catastrophe : ", n4]
> > quant = Quantile[don1, {5/100, 2/5, 3/5, 95/100}]
> > abs[x_] :=
> > Which[x == 0., GrayLevel[1.], x > 0. && x < quant[[1]],
> >  GrayLevel[0.80], x > quant[[1]] && x < quant[[2]], GrayLevel[0.65],
> >  x > quant[[2]] && x < quant[[3]], GrayLevel[0.50],
> >  x > quant[[3]] && x < quant[[4]], GrayLevel[0.35], x > quant[[4]],
> >  GrayLevel[0.]]
> > val = Transpose@{CountryData[], don1};
> > fig = Graphics[{abs[#[[2]]], EdgeForm[{Thin, Gray}],
> >      CountryData[#[[1]], {"SchematicPolygon", "Robinson"}]} & /@ =
val,
> >    ImageSize -> {600, 600}];
> > max = Max[don1]
> > min = Min[don1]
> > Needs["PlotLegends`"]
> > ShowLegend[fig, {GrayLevel[1 - #] &, 6, " min", " max",
> >  LegendPosition -> {1.1, -.4}}]
>
> > What is the solution to obtain automatic value for "max" and "min" on
> > the ShowLegend instruction
>
> > Thanks
>
> > A. Dauphin=E9
> > Geographer

Thanks to Hanke
It's OK
A. Dauphine

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web