Message Boards Message Boards

0
|
1228 Views
|
1 Reply
|
3 Total Likes
View groups...
Share
Share this post:

Green and orange lines in an empty-intended Plot?

Posted 1 year ago

I'm trying to make an empty 2D graph, but I keep getting these strange green and orange lines, how do I get rid of them?

Plot[
{x,6,-1},
{y,6,-1},
AxesLabel -> {x,y}
]
POSTED BY: Arthur Kim

This way you are in fact plotting 3 functions: "x", which is not depending on y (your variable) and so it is undefined and not shown, and the constant functions "6" and "-1" (the colored lines). You probably rather want:

Plot3D[Nothing, {x, 6, -1}, {y, 6, -1}, AxesLabel -> {x, y}]
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

Group Abstract Group Abstract