[Matplotlib-users] plotting numbers on axes in scientific notation

2008-09-07 Thread anirudh vij
Hi,

How can I plot numbers on the x and y axes in scientific notation?
 I have very large values on the y axis which I'd like to show as 1e9 and
not 1 followed by 9 zeros.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Questions about 3D plotting

2008-07-09 Thread anirudh vij
Hi,

First off, I'd like to congratulate the devs who wrote the 3D plotting
module. Its great and fits a lot of my plotting needs without
resorting to vtk, mayavi etc.

But I've had some issues with 3D plots

1. If i do a

import pylab as p
import matplotlib.axes3d as p3
fig=p.figure()
ax = p3.Axes3D(fig)
ax.scatter3D(ravel(x),ravel(y),ravel(z))
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
p.show()


then things work well.

But if I do an from pylab import *,
the plot command does'nt work. Any ideas?

2. In the scatterplot, as well as other 3D plots, I would like to plot
different datasets with different colors. While in plot(), r. etc
change color, in plot3d etc the option does'nt work.
So, is there a way to use different colors in the same plot.

3. Is there any documentation on the 3D plotting functions. There are
examples at http://scipy.org/Cookbook/Matplotlib/mplot3D, but I
could'nt find any documentation on function calls, options etc.
help(plot3d) just says plot3d(**args) without any other info.

cheers,
anirudh.

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Questions about 3D plotting

2008-07-09 Thread anirudh vij
 We have been warning that 3D plotting was unsupported and needed someone to
 volunteer to maintain it for quite a while now. Nobody answered the call, and
 3d capabilities did not survive the transition to the new transforms in
 mpl-0.98, so it was removed, However...


hmm. Mayavi2 has a mlab module thats under active development. It aims
to do the same stuff that matlab 3D plots do. However, svn currently
crashes for me.

 [...]
 matplotlib version is 0.91.2, straight from ubuntu repos.

 3D support should still be present in 0.91.x. I just did a clean install of
 0.91.4 from svn, and this works:

 import pylab as p
 import matplotlib.axes3d as p3
 fig=p.figure()
 ax = p3.Axes3D(fig)
 p.show()

 I haven't used matplotlib's 3d capabilities, so I dont know how you expected
 to work with from pylab import * instead of the above. Perhaps you could
 give a short explicit example of what used to work and now does not.
-
from pylab import *
import matplotlib.axes3d as p3
fig=figure()
ax= p3.Axes3D(fig)
ax.scatter3D(x,y,z)
show()
-
this causes an error. x,y,z are valid 1D arrays. They work using the
method you've posted in your mail.

Perhaps a wrapper can be wriitten around mayavi's mlab module. 3D
plotting is too important to leave out of something like matplotlib.
Its perfect for all other things. It would be a pity if one has to
switch to gnuplot or dislin just for 3D.

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users