Hi,
I can't get the plotfile command to work on a simple file. I have
a file"tester.txt" which looks like:
1 0.2137 0.2139 0.2138
2 0.3969 0.3970 0.4003
3 0.4391 0.4396 0.4382
4 1.0020
This is probably my lack of knowledge of python, but how do I set up
legend labels for some bar-plots that have been produced inside a
function. For example, the following will nicely plot my bar-plots, but
then legend doesn't know about the colours used, so here just uses black
for both labels.
I would like to find percentiles, with interpolation where needed, but
the matplotlib prctile seems to be different to matlab in this respect:
In [1]: x = array([ 3.0, 5.0, 7.0, 8.0, 9.0, 11.0 ])
In [2]: median(x)
Out[2]: 7.5
In [3]: prctile(x,50)
Out[3]: 8.0
is there a function available whi
Hi Jeff,
I just added it, but get the same error. Any other variables I need to set?
Thanks,
Dave
Jeff Whitaker wrote:
> David Simpson wrote:
>> I just tried to install basemap 0.9.8 but when I run simpletest.py
>> from the examples directory I get:
>>
>> File
I just tried to install basemap 0.9.8 but when I run simpletest.py from
the examples directory I get:
File
"/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py",
line 31, in
import _geos, pupynere
ImportError: libgeos_c.so.1: cannot open shared object file: No such
fil
I also had some trouble with exponents in an axis, getting
0.0 to 3.0 on the axis, with +1.998e3. I wanted the years
1998 to 2001 instead. I solved this using the following code
(with the solution bits commented out):
#!/usr/bin/env python
from pylab import *
# from matplotlib.ticker import Format
Hi!
I'm trying to do a few plots in one figure using subplot, but the
size of the legends isn't changing as I try to add more plots.
I have found out how to change the size the hard-coded way, but
is there any way I can get the legend to know how large it should
be? For example, with the following