# Is there an option for ListPlot that uses x and y values from two lists?

**URL:** <https://community.wolfram.com/t/is-there-an-option-for-listplot-that-uses-x-and-y-values-from-two-lists/4125>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [November 26, 2014, 2:36pm UTC](https://community.wolfram.com/t/is-there-an-option-for-listplot-that-uses-x-and-y-values-from-two-lists/4125 "2014-11-26T14:36:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/doug/32/9648_2.png) [@doug](https://community.wolfram.com/u/doug)\
**Post date:** [November 26, 2014, 2:36pm UTC](https://community.wolfram.com/t/is-there-an-option-for-listplot-that-uses-x-and-y-values-from-two-lists/4125/1 "2014-11-26T14:36:21Z")

</div>

list1 is X values  
list2 is Y values

The x and y values in each are in order with each other.

Can I get ListPlot to assemble these two lists as x,y points in a scatter plot?

I don’t see the option.

---

<div class="post-metadata">

**Author:** ![georgevw3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/georgevw3/32/19010_2.png) [@georgevw3](https://community.wolfram.com/u/georgevw3)\
**Post date:** [November 26, 2014, 3:14pm UTC](https://community.wolfram.com/t/is-there-an-option-for-listplot-that-uses-x-and-y-values-from-two-lists/4125/2 "2014-11-26T15:14:25Z")

</div>

Use Transpose.

```
list1 = {1, 2, 5, 6, 8, 15};
list2 = {.2, .5, .8, 1.4, 1.0, .1};
ListPlot[Transpose[{list1, list2}]]

```

This should do what you want.

[ListPlotExample.bmp](https://community.wolfram.com/uploads/short-url/iH9RtmmjiKmR4iNHi932cDQHun8.bmp) (81.5 KB)

---

<div class="post-metadata">

**Author:** ![doug](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/doug/32/9648_2.png) [@doug](https://community.wolfram.com/u/doug)\
**Post date:** [November 26, 2014, 3:38pm UTC](https://community.wolfram.com/t/is-there-an-option-for-listplot-that-uses-x-and-y-values-from-two-lists/4125/3 "2014-11-26T15:38:16Z")

</div>

Thank you George - I should have looked more carefully at commands for list manipulation rather than options under ListPlot. That saves me a few lines of code for constructing a dummy list for plotting.

Maybe Wolfram documentation should actually show Transpose under ListPlot. I did look!

Doug
