Timeline for Making a plot from three lists [closed]
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 6, 2017 at 10:39 | history | closed |
bbgodfrey MarcoB m_goldberg C. E.♦ corey979 |
Not suitable for this site | |
Feb 6, 2017 at 8:57 | vote | accept | Ehsan F | ||
Feb 6, 2017 at 8:31 | history | edited | m_goldberg | CC BY-SA 3.0 |
Routine clean-up
|
Feb 6, 2017 at 7:42 | answer | added | m_goldberg | timeline score: 6 | |
Feb 6, 2017 at 7:40 | review | Close votes | |||
Feb 6, 2017 at 10:39 | |||||
Feb 6, 2017 at 7:40 | comment | added | MarcoB |
@EhsanF Your sets are still of different length; y2 is too short by one. Also, lists are enclosed by curly brances in MMA, e.g. x = {1, 2, 3, 4, 5, 6, 7, 8} . Try ListLinePlot@Transpose@{x1, y1} .
|
|
Feb 6, 2017 at 7:40 | history | edited | Ehsan F | CC BY-SA 3.0 |
added 1 character in body
|
Feb 6, 2017 at 7:36 | comment | added | Ehsan F | @MarcoB how plot this?x=[1,2,3,4,5,6,7,8] and y(1)=[0,11,12,13,14,15,16,17] and y(2)=[0,10,11.5,12.5.13.5,14.5,15.2,16] and a vertical line at x=12 | |
Feb 6, 2017 at 7:31 | comment | added | Ehsan F | @MarcoB no i can do my work by equal length data | |
Feb 6, 2017 at 7:05 | review | Low quality posts | |||
Feb 6, 2017 at 8:36 | |||||
Feb 6, 2017 at 6:57 | history | edited | MarcoB | CC BY-SA 3.0 |
Removed duplicate text
|
Feb 6, 2017 at 6:56 | comment | added | Nasser |
Your data is inconsistent. You have 9 x values, and only 8 y1 values. I can't read y2. Any way, check ListLinePlot and check Show to combine. And check Line to make line.
|
|
Feb 6, 2017 at 6:55 | comment | added | MarcoB |
Would you please present your data in Mathematica format, i.e. as a list delimited by curly braces { } ? Normally, Transpose@{x,y1} would give you a dataset you could plot using ListPlot , as was pointed out to you in your previous question. However, your data sets have different lengths, so that wouldn't work. Do you really have to deal with different-length lists?
|
|
Feb 6, 2017 at 6:47 | history | asked | Ehsan F | CC BY-SA 3.0 |