Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Blank plot returned from simple expression

1,214 views
Skip to first unread message

Vincent

unread,
Feb 28, 2012, 12:45:36 AM2/28/12
to
I'm using Mathematica 8.0.0, and I'm having trouble understanding why
Plot[Im[(-1)^x], {x, 0, 2}]
returns a blank plot while
ListPlot[Table[Im[(-1)^x], {x, 0, 2, 0.1}]]
returns the expected plot.

Anyone who can enlighten me about what's going on?

David Reiss

unread,
Feb 29, 2012, 7:23:12 AM2/29/12
to
The plot works fine for me. Did you accidentally put a semicolon
after the plot command?

Tomas Garza

unread,
Feb 29, 2012, 7:27:27 AM2/29/12
to

I don't get a blank plot. The expected plot of the continuous function is returned OK.
-Tomas

> Date: Tue, 28 Feb 2012 00:45:11 -0500
> From: shee...@gmail.com
> Subject: Blank plot returned from simple expression
> To: math...@smc.vnet.net

Michael Musheghian

unread,
Feb 29, 2012, 7:30:32 AM2/29/12
to
On Mathematica 8.0.4 it does not return blank plot. Could be either because of the difference in versions, or in your sytem configuration. I tried on Windows 7 32-bit.

Bob Hanlon

unread,
Feb 29, 2012, 7:31:03 AM2/29/12
to
Works fine on a Mac with Mathematica v8.0.4.0

Try starting with a fresh kernel or re-entering Plot command in case
there is hidden character embedded in the original.


Bob Hanlon

roby

unread,
Feb 29, 2012, 7:31:34 AM2/29/12
to
Works flawless on 7.0.0 as well as on 8.0.1 under Windows XP
cheers Robert
0 new messages