Group Abstract Group Abstract

Message Boards Message Boards

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

[?] Shorthand to represent multiple expressions in a Plot[] function?

Posted 7 years ago
POSTED BY: Fly Guy
3 Replies

Of course function heads can be arguments as well! For the one dimensional case try e.g.:

Plot[Evaluate[#[x] & /@ lfX], {x, 0, 30}]
POSTED BY: Henrik Schachner

Glad you liked my answer! Just for completeness: Evaluate is only needed because Plot has the attribute HoldAll. And the more 'official' way would read:

Plot[Evaluate@Through[lfX[x]], {x, 0, 30}]
POSTED BY: Henrik Schachner
Posted 7 years ago

Fantastic, Magnificent, wie, total wunderbar

I had no idea how to use Evaluate[] and Map[] for functions rather than parameters. This is definitely an educational episode. Now I believe I see how to process a density-1 2D matrix with a lvlspec (3rd param) on Map. A sparse matrix will be messier, but "Wait, Wait, Don't tell me"...

THANK YOU!

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