Friends,
I sent the following mail to mpl users with a figure. Since the size was
bigger, it bounced back to my email. So i am fwd it again without attaching
the figure.

It seems that i can only set tick labels and limits of the axes using
set_xlabel and set_xlim3d functions.Basically i want to know how to
manipulate the x,y and z ticks intervals for a graph created with Axes3D.


On Fri, Jan 14, 2011 at 12:06 PM, Bala subramanian <
bala.biophys...@gmail.com> wrote:

> Dear Friends, i used the following code to create a 3D plot (attached
> figure). I manipulate the appearance of the graph. Someone please enlighten
> me on the same. I dnt get what functions should i use to do the following
> manipulations.
>
> 1) How to remove the blue shading in the grid
> 2) How to change the distance between the axis label and axis tick labels
> 3) How to set the interval of the axis ticks. For example the xlim varies
> from -80 to 60. I want to set xticks at an interval of 30 rather than 20 as
> in the plot.
>
> My code.
> import numpy as np
> import matplotlib as mpl
> from mpl_toolkits.mplot3d import Axes3D
> import matplotlib.pyplot as plt
>
> FIG=plt.figure(figsize=(4.,3.27),dpi=200)
> ax = Axes3D(FIG,azim=-60,elev=15)
>
> x=np.reshape(np.loadtxt(data[0]),15000)
> y=np.reshape(np.loadtxt(data[1]),15000)
> z=np.reshape(np.loadtxt(data[2]),15000)
>
> ax.scatter3D(x[::10],y[::10],z[::10],edgecolors=col[i],facecolors='white',marker=mar[i],s=5,alpha=0.7)
> ax.set_xlabel('PC1',size=8)
> ax.set_ylabel('PC2',size=8)
> ax.set_zlabel('PC3',size=8)
> ax.set_xlim3d(-80,60,30)
> ax.set_ylim3d(-40,50,30)
> ax.set_zlim3d(-40,40,30)
>
>
>
>
>
>
>
>
>
>
>
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to