WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
0
|
2606 Views
|
1 Reply
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Graphics and Visualization
How do you plot a list of lists, such that all entries of list[i] have x=i?
Max Mustermann
Max Mustermann
Posted
11 years ago
Hey,
as in despcription:
I have a List of Lists { {List1}, {List2}, ... } each list, has the form {y1,y2,...}. I want to create a plot such that, all the points in list1 have the x-coordinate 1, all points in list2 have the x-coordinate 2 and so on.
Could you please tell me how to do this?
Thank you very much
POSTED BY:
Max Mustermann
Reply
|
Flag
1 Reply
Sort By:
Replies
Likes
Recent
2
Nasser M. Abbasi
Nasser M. Abbasi, student
Posted
11 years ago
lst = Table[RandomReal[1, {10}], {3}];
p = MapThread[Function[{i, lst}, List[i, #] & /@ lst], {Range[Length@lst], lst}];
Grid[{ListPlot[#] & /@ p}, Frame -> All]
All in one
Show[ListPlot[#] & /@ p, PlotRange -> All]
POSTED BY:
Nasser M. Abbasi
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how »