Results 1 to 2 of 2

Math Help - Mathematics ListPlot problem

  1. #1
    Newbie
    Joined
    Jan 2010
    Posts
    2

    Mathematics ListPlot problem

    Hello all,
    I have a little problem with mathematica...here it is

    I have a table of the form {x_i , y_i , color_i}

    What I want to do is to plot the coordinates x,y with ListPlot(or anything similar)
    and to color every {x,y} point with color_i from the table which is a scale of gray). The problem is that I don't know how to plot each point with a color from my specific list { color_i }

    thanks...
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Jan 2010
    Posts
    2

    I did it

    If anyone is interested:

    td = Import["MyFolder", "Table"];
    xy = Table[{td[[i]][[1]], td[[i]][[3]]/300}, {i, 1, Length[td]}];
    col = Flatten[Table[{td[[i]][[5]]}, {i, 1, Length[td]}]];
    color = Table[{col[[i]], col[[i]], col[[i]]}, {i, 1, Length[td]}];
    Graphics[{Point[xy, VertexColors -> color]}]
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. national exams Mathematics C problem
    Posted in the Calculus Forum
    Replies: 3
    Last Post: December 11th 2011, 11:15 AM
  2. Discrete mathematics set theory problem!
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: February 3rd 2010, 09:27 AM
  3. Discrete Mathematics Problem (Proofs)
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: October 10th 2009, 06:52 AM
  4. Introductory Finite Mathematics problem..
    Posted in the Math Topics Forum
    Replies: 2
    Last Post: October 9th 2009, 03:12 PM
  5. Mathematics: Discrete-Mathematics (Algorithems)
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: November 2nd 2008, 06:27 AM

Search Tags


/mathhelpforum @mathhelpforum