The graphs look like an isometric projection, which is not very convenient for assessing what happens along the delay axis. For comparison, "by eye" it would be good if the delay axis is parallel to the monitor plane, and accum periods are perpendicular. How to register in the code the angle at which the graphs are displayed?

10 graphs

x = np.arange (0, 64, 1) y = np.arange (0, aver, 1) xgrid, ygrid = np.meshgrid(x, y) zgrid = ifft_data x, y, z = xgrid,ygrid,zgrid fig = pylab.figure() axes = Axes3D(fig) axes.plot_surface(x, y, z) plt.xlabel('delay') plt.ylabel('accumulation periods') pylab.show() 

    1 answer 1

    Use ax.view_init (ax.elev, ax.azim) .

    Example:

     from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm import numpy as np fig = plt.figure() ax = fig.gca(projection='3d') # Make data. 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) surf = ax.plot_surface(X, Y, Z, cmap=cm.coolwarm, linewidth=0, antialiased=False) 

    Result (default):

    enter image description here

    After turning:

     ax.view_init(30, -89) 

    enter image description here

    PS to find out what angle values ​​you need - the easiest way is to draw a graph with default angles in Jupyter (iPython), rotate the graph with the mouse as you need and see what angles you get:

     In [209]: print('elev:\t{}\t\tazim:\t{}'.format(ax.elev, ax.azim)) elev: 30 azim: -89