0
$\begingroup$

I am trying to plot the following list in which for each value of x point, we have three different values for the y point

list={{1,{1,2,3}},{2,{2,3,4}},{3,{5,6,7}}; 

Any hints for how to plot this? I tried ListPlot but it does not work well with the format of my list.

Thanks!

$\endgroup$
2
  • 1
    $\begingroup$ Clear[list];list = {{1, {1, 2, 3}}, {2, {2, 3, 4}}, {3, {5, 6, 7}}}; ListPlot[Thread /@ list] $\endgroup$ Commented May 1, 2024 at 3:24
  • 1
    $\begingroup$ Or Transpose, i.e., ListPlot[Transpose[Thread /@ list], Joined -> True, PlotMarkers -> Automatic] $\endgroup$ Commented May 1, 2024 at 4:12

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.