I have the following code:
def plot_yz_over_x_elementwise(zarray):
for i in range(zarray.shape[1]):
for j in range(zarray.shape[2]):
plt.subplot2grid((zarray.shape[1],zarray.shape[2]),(i,j))
plt.plot(zarray[:,i,j])
frame = plt.gca()
frame.axes.get_xaxis().set_ticks([])
frame.axes.get_yaxis().set_ticks([1,0.5,0])
Which takes a 3D np array and plots it in a figure like this:
Which is embedded in an ipython notebook. What I need is some way to format this graph so that the axis labels aren't on top of each other. I guess that means either spreading it out on the notebook...or shrinking it within each cell in python. How do I do one or the other to get this plot looking right?