INTRO
=
please consider the following code (I'm trying to draw a timeline)
1 from matplotlib import pyplot, patches
2 fig = pyplot.figure()
3 ax = fig.add_subplot('111')
4 ax.add_patch(patches.Rectangle((1933,0.25), 73, 0.5))
5 pyplot.show()
that gives me a plot with the x axis that goes fro
Alex Goodman
writes:
> Try using the set_ylabel() and set_xlabel() methods for each Axes instance
> instead, eg:
>
> a[0].set_ylabel('f1')
> ...
works as intended, tx Alex
--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Kno
two plots in a figure:
from pylab import *
...
f,a = subplots(nrows=2, sharex=False, sharey=False)
a[0].plot(x,f0(x))
ylabel('f1')
xlabel('t')
...
a[1].plot(x,f1(x))
ylabel('f2')
xlabel('t')
...
show()