Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Creating Histogram-Data from X,Y,Z-Data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126570] Creating Histogram-Data from X,Y,Z-Data
  • From: Andre Koppel <akoppel at akso.de>
  • Date: Sat, 19 May 2012 05:47:59 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hi All,
I do have some Data like the following:
{{1, 2, 3}, {4, 5, 6}}
To use a histogram-function (like Histogram3D) I need to transform this 
into a list like:
{{1,2}, {1,2}, {1,2}, {4,5}, {4,5}, {4,5}, {4,5}, {4,5}, {4,5}}
This means "Create an X/Y-Pair for each Z-Value. Possibly with an 
optional Z-Step. Second Example (Z-Step: 2)
{{1, 2, 4}, {4, 5, 6}}
Would result in:
{{1, 2}, {1, 2}, {4,5}, {4,5}, {4,5}}
Did anybody know a simple converting-Function?
Kind regards
Andre



  • Prev by Date: Tubes renders zero-dimensional objects
  • Next by Date: Re: problem with Manipulate
  • Previous by thread: Tubes renders zero-dimensional objects
  • Next by thread: Re: Creating Histogram-Data from X,Y,Z-Data