Re: [Matplotlib-users] plot3d ticker setting
Hi Scripper, I'm not sure what you would like to know, but it is possible to change the tick settings on the 3D axes in the same way as for normal 2D axes. For example: from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FixedLocator, FormatStrFormatter import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = Axes3D(fig) X = np.arange(-5, 5, 0.25) Y = np.arange(-5, 5, 0.25) X, Y = np.meshgrid(X, Y) R = np.sqrt(X**2 + Y**2) Z = np.sin(R) ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet) ax.set_zlim3d(-1.01, 1.01) ax.w_zaxis.set_major_locator(LinearLocator(10)) ax.w_zaxis.set_major_formatter(FormatStrFormatter('%.03f')) plt.show() Hope this helps, Reinier On Tue, Aug 18, 2009 at 7:16 PM, scripperscrip...@gmail.com wrote: Hi everybody, i am a newbie on Matplotlib and wanna know whether there is already tick setting on x,y,z axes in 3D plot. By now i just know on 2-dimension which listed on the gallery. Thanks very much! -- View this message in context: http://www.nabble.com/plot3d-ticker-setting-tp25029488p25029488.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Reinier Heeres Tel: +31 6 10852639 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plot3d ticker setting
Hi everybody, i am a newbie on Matplotlib and wanna know whether there is already tick setting on x,y,z axes in 3D plot. By now i just know on 2-dimension which listed on the gallery. Thanks very much! -- View this message in context: http://www.nabble.com/plot3d-ticker-setting-tp25029488p25029488.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plot3d
I am new to MatPlotLib and I saw in the archives that 3d plotting is no longer supported in version 0.98. This seems like a major feature drop to me. I would really like to use this feature. Does anyone know what must be done to get this working again? Thanks, -Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plot3d
On Thu, Jun 26, 2008 at 11:31 AM, Ben Axelrod [EMAIL PROTECTED] wrote: I am new to MatPlotLib and I saw in the archives that 3d plotting is no longer supported in version 0.98. This seems like a major feature drop to me. I would really like to use this feature. Does anyone know what must be done to get this working again? Michael did a significant rewrite of our transformation infrastructure in 0.98. This was long overdue and helps us support 2D plotting better -- eg user extensible projections -- and results in cleaner code. None of the developers thus far have taken 3d plotting under their wing to support it. The implementation, while extremely clever, is slow and has some zorder problems, so we haven't fully embraced it, though we have said for a long time we would like some minimum level of 3D support that works out of the box. Michael did a lot of work to make the transformation code mostly compatible at the API level, and included some untested place holders for higher dimensional data structures, but their are differences which are detailed in the migration document in the source directory. Since the 3d coding naturally uses a lot of transformations, someone would have to do the work to port these calls to the new API, *and* agree to support it going forward for us to reinclude it. JDH - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plot3D in subplot
Hello, Could anyone tell me how to use plot3D in a subplot? I looked at the examples at http://www.scipy.org/Cookbook/Matplotlib/mplot3D But seems to me that matplotlib.axes3d.Axes3D can be only constructed from a Figure instance but not from a Subplot instance. Thanks, Bing - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plot3D in subplot
On Sat, May 24, 2008 at 4:08 PM, Bing [EMAIL PROTECTED] wrote: Hello, Could anyone tell me how to use plot3D in a subplot? I looked at the examples at http://www.scipy.org/Cookbook/Matplotlib/mplot3D But seems to me that matplotlib.axes3d.Axes3D can be only constructed from a Figure instance but not from a Subplot instance. You should be able to set the rect keyword argument of the Axes3D constructor: fig=p.figure() ax = pylab.Axes3D(fig, rect=[0.2, 0.6, 0.7, 0.3]) where rect is [left, bottom, width, height] in fractions of the figure 0..1 A subplot is just an axes with a rect set so that it lives on a regular grid. Note though that the 3D stuff is experimental, slow, somewhat buggy and not supported, so we won't be able to help much with real problems. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plot3D in subplot
Hi John, Thanks for the hint. I am able to pass the rect returned by Subplot.get_position(). Bing On Sat, May 24, 2008 at 9:27 PM, John Hunter [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 4:08 PM, Bing [EMAIL PROTECTED] wrote: Hello, Could anyone tell me how to use plot3D in a subplot? I looked at the examples at http://www.scipy.org/Cookbook/Matplotlib/mplot3D But seems to me that matplotlib.axes3d.Axes3D can be only constructed from a Figure instance but not from a Subplot instance. You should be able to set the rect keyword argument of the Axes3D constructor: fig=p.figure() ax = pylab.Axes3D(fig, rect=[0.2, 0.6, 0.7, 0.3]) where rect is [left, bottom, width, height] in fractions of the figure 0..1 A subplot is just an axes with a rect set so that it lives on a regular grid. Note though that the 3D stuff is experimental, slow, somewhat buggy and not supported, so we won't be able to help much with real problems. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plot3D problem
I have been trying the 3D matplotlib examples in http://www.scipy.org/Cookbook/Matplotlib/mplot3D using ipython as follows: python -pylab -p scipy import matplotlib.axes3d as ax3d u=r_[0:2*pi:100j] v=r_[0:2*pi:100j] x=10*outer(cos(u),sin(v)) y=10*outer(sin(u),sin(v)) z=10*outer(ones(size(u)),cos(v)) a=ravel(x) b=ravel(y) c=ravel(z) fig=figure() ax=ax3d.Axes3D(fig) This works fine for ax.plot_wireframe(x,y,z) and ax.scatter3D(a,b,c) but when I try ax.plot3D(a,b,c) the following errors appear: x.plot3D(a,b,c) --- exceptions.TypeError Traceback (most recent call last) /home/rj/ipython console /usr/lib/python2.3/site-packages/matplotlib/axes3d.py in plot3D(self, xs, ys, zs, *args, **kwargs) 488 def plot3D(self, xs, ys, zs, *args, **kwargs): 489 had_data = self.has_data() -- 490 lines = Axes.plot(self, xs,ys, *args, **kwargs) 491 if len(lines)==1: 492 line = lines[0] /usr/lib/python2.3/site-packages/matplotlib/axes.py in plot(self, *args, **kwargs) 2129 lines = [line for line in lines] # consume the generator 2130 - 2131 self.autoscale_view(scalex=scalex, scaley=scaley) 2132 return lines 2133 TypeError: autoscale_view() got an unexpected keyword argument 'scalex' Also, moving the mouse into the blank figure window gives many errors like: File /usr/lib/python2.3/site-packages/matplotlib/proj3d.py, line 243, in proj_trans_points return proj_transform(xs,ys,zs,M) File /usr/lib/python2.3/site-packages/matplotlib/proj3d.py, line 226, in proj_transform return proj_transform_vec(vec,M) File /usr/lib/python2.3/site-packages/matplotlib/proj3d.py, line 185, in proj_transform_vec vecw = nx.matrixmultiply(M,vec) TypeError: unsupported operand type(s) for *: 'NoneType' and 'float' I am using Scientific Linux 4.4 i386 Scipy(with ATLAS) numpy from svn, rev. 2292 3375 respectively MatPlotLib 87.7 Any ideas about what is going on? Thanks RJ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users