Group Abstract Group Abstract

Message Boards Message Boards

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

Empty ContourPlots when using symbol with assigned equation

Why don't the first two contour plots show the equation?

POSTED BY: Jay Gourley
2 Replies

Thanks, Henrik Schachner. That works. I'm reading about Evaluate now.

POSTED BY: Jay Gourley

Jay,

ContourPlot has the attribute HoldAll:

Attributes[ContourPlot]
(*  Out:   {HoldAll,Protected,ReadProtected}   *)

So, you need Evaluate:

eq1 = x^2 - y (x - 1) == 0;
ContourPlot[Evaluate@eq1, {x, -5, 5}, {y, -5, 5}]
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard