Message Boards Message Boards

[?] Plot two lists together in same ListPlot?

Posted 4 years ago
Attachments:
POSTED BY: Jaime de la Mota
7 Replies
Posted 4 years ago

it is very cool for me

POSTED BY: Vlad Burim
Posted 4 years ago

Try the option PlotRange->All

ListPlot[{data1, data2}, Joined -> True, PlotRange -> All]

enter image description here

POSTED BY: Hans Milton

It works fine. Thank you very much

POSTED BY: Jaime de la Mota

Jaime,

Don’t transpose when you already have x,y pairs

Do

ListPlot[{data1, data2}]

The documentation has good examples of this. (Look at 6th example under Scope).

Regards

Neil

POSTED BY: Neil Singer

Hello Neil.

I think I might have expressed myself wrong. data1 and data2 are the transposed data against time. That is what I am sending to ListPlot as you suggest, but as you can see, data1, the orange, is displayed at the bottom-left corner of the image.

Thanks anyways for the answer.

Jaime.

Attachment

Attachments:
POSTED BY: Jaime de la Mota
Posted 4 years ago

The ListPlot command choosses the axis ranges automatically and drops your data. Try to add: PlotRange -> All

Succes.

POSTED BY: Wiel Aerts

It works fine. Thank you very much

POSTED BY: Jaime de la Mota
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract