axes

Changing the "tick frequency" on x or y axis in matplotlib

Changing the tick frequency on the x or y axis Question: I am trying to fix how python plots my data. Say: x = [0, 5, 9, 10, 15] y = [0, 1, 2, 3, 4] matplotlib.pyplot.plot(x, y) matplotlib.pyplot.show() The x axis’ ticks are plotted in intervals of 5. Is there a way to make …

Total answers: 14

How can I make a blank subplot in matplotlib?

How can I make a blank subplot in matplotlib? Question: I am making a group of subplot (say, 3 x 2) in matplotlib, but I have fewer than 6 datasets. How can I make the remaining subplot blank? The arrangement looks like this: +—-+—-+ | 0,0| 0,1| +—-+—-+ | 1,0| 1,1| +—-+—-+ | 2,0| 2,1| …

Total answers: 5

How do I let my matplotlib plot go beyond the axes?

How do I let my matplotlib plot go beyond the axes? Question: I have to translate an image plotting script from matlab to matplotlib/pylab, and I’m trying to achieve the same effect as the matlab image below: As you can see, the z order of the plots seem to be higher than the z order …

Total answers: 3