DMUG-Archiv 2009

Frühere

 

Chronologischer Index

 

Spätere

Vorherige

 

Thematischer Index

 

Nächste

Re: PlotRange und DataRange in ArrayPlot

Hallo Martin,

Interessanterweise macht ReliefPlot genau dies:

ReliefPlot[picD, ColorFunction -> "GreenBrownTerrain",
  PlotRange -> {1000, 2000}, DataRange -> {{20, 30}, {50, 60}},
  FrameTicks -> Automatic]

ArrayPlot jedoch nicht:

ArrayPlot[picD, ColorFunction -> "GreenBrownTerrain",
  PlotRange -> {1000, 2000}, DataRange -> {{20, 30}, {50, 60}},
  FrameTicks -> Automatic]

Ich denke das dies doch ein Bug ist.

Stimmt, sehe ich jetzt auch so. Ein elementares Beispiel:

In[4]:= data = RandomReal[1, {10, 20}];

In[14]:= ArrayPlot[data, ColorFunction -> "Rainbow",
 DataRange -> {{-10, 10}, {30, 40}}, FrameTicks -> Automatic]

funktioniert,

In[15]:= ArrayPlot[data, ColorFunction -> "Rainbow",
 PlotRange -> {0.4, 0.5}, FrameTicks -> Automatic]

funktioniert auch, es werden nur einige Felder im Array geplottet. Aber

In[16]:= ArrayPlot[data, ColorFunction -> "Rainbow",
 PlotRange -> {0.4, 0.5},
 DataRange -> {{-10, 10}, {30, 40}}, FrameTicks -> Automatic]

liefert eine Zeile von x = -10 bis 10 ab -> 'n Bug. Ebenso sind

In[19]:= ArrayPlot[data, ColorFunction -> "Rainbow",
 PlotRange -> {0.4, Automatic},
 DataRange -> {{-10, 10}, {30, 40}}, FrameTicks -> Automatic]

und

In[20]:= ArrayPlot[data, ColorFunction -> "Rainbow",
 PlotRange -> {Automatic, 0.5},
 DataRange -> {{-10, 10}, {30, 40}}, FrameTicks -> Automatic]

fehlerhaft. Aber vielleicht können Sie auf ReliefPlot[] ausweichen.

Gruss
Udo.

Antworten:
DataRange und PlotRange
Martin Heimann, 19.01.2009
Verweise:
PlotRange und DataRange in ArrayPlot
Martin Heimann, 17.01.2009
Re: PlotRange und DataRange in ArrayPlot
Udo und Susanne Krause, 17.01.2009
Re: PlotRange und DataRange in ArrayPlot
Martin Heimann, 18.01.2009
Re: PlotRange und DataRange in ArrayPlot
Udo und Susanne Krause, 18.01.2009
Re: PlotRange und DataRange in ArrayPlot
Martin Heimann, 18.01.2009

Frühere

 

Chronologischer Index

 

Spätere

Vorherige

 

Thematischer Index

 

Nächste

DMUG-Archiv, http://www.mathematica.ch/dmug-liste.html; Letzte Änderung: 19.01.2009 23:14