Group Abstract Group Abstract

Message Boards Message Boards

0
|
3K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Avoid too many curly brackets to break ListPlot?

Posted 7 years ago
POSTED BY: Paul Suni
3 Replies

This will also work:

ListPlot[Flatten[jnk, {{1, 3}, {2}}]]

by using Flatten only and not using Map.

POSTED BY: Neil Singer

Perfect. Thanks so much, Neil.

POSTED BY: Paul Suni

Paul,

The problem is that you are giving ListPlot a matrix instead of a list of x-y points. You can easily reformat your data into the correct format for ListPlot with

jnk = NestList[p, x, 2];
ListPlot[Map[Flatten[#, 2] & , jnk]]

Regards,

Neil

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