How I can plot functions of the kind $f:\Bbb R\to\Bbb C$ in 3D properly?

asked 2016-10-27 12:15:16 -0500

Masacroso gravatar image

updated 2016-10-27 15:41:08 -0500

What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?

By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.

UPDATE: I get some kind of partial solution for the example above, using parametric_plot3d


but my problem now is that the axes are not scaled properly, the option scale=1doesnt work. I found a partial solution using the option aspect_ratio=[1,1,1]but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option zoom=2 (or the mouse wheel) but does not work because the graph is not centered in the screen, check this.

Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.

edit retag flag offensive close merge delete


For reference, see also at

kcrisman gravatar imagekcrisman ( 2016-10-27 13:01:38 -0500 )edit

@kcrisman I updated all the infor that I have at the moment, but there are other problems that I dont know how to fix them by now.

Masacroso gravatar imageMasacroso ( 2016-10-27 13:13:36 -0500 )edit

I don't find the zoom to be a problem, because I always zoom in and out anyway, and rotate it etc. - on my laptop using a gesture, I think with a mouse with a wheel you can use that, without these there is still right-clicking and choosing "zoom". By the way, I don't think that keyword will work without the jmol viewer.

kcrisman gravatar imagekcrisman ( 2016-10-27 13:29:55 -0500 )edit

@kcrisman indeed it is a problem, the position of the figure is not optimal at all, you zoom it (with the mouse or the option) and the figure is not centered in the screen, so you cant have a good vision of it. Rotating the figure is nice but still the figure not centered is a very bad thing.

Masacroso gravatar imageMasacroso ( 2016-10-27 13:46:58 -0500 )edit

Ah, I see what you mean - I am able to center is by rotating but it doesn't start there. I've seen that for others, I'm not sure what causes it as it isn't easily reproducible in every graph.

kcrisman gravatar imagekcrisman ( 2016-10-27 14:29:37 -0500 )edit