Hi everybody,
I'm trying to run contour_demo.pp example but I'm having this error.
Anybody can help?
Thanks,
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitializ
Hello,
If I do the following:
plot([1],[1],'o')
it plots the one dot correctly.
if, however, one of those numbers is zero:
plot([1],[0],'o')
I get a floating point/divide by zero error:
/usr/lib/python2.4/site-packages/matplotlib/ticker.py in scale_range(vmin,
vmax, n,
threshold)
73
Brian Blais wrote:
>
> plot([1],[0],'o')
>
> I get a floating point/divide by zero error:
>
>
> /usr/lib/python2.4/site-packages/matplotlib/ticker.py in scale_range(vmin,
> vmax, n,
> threshold)
> 731 dv = abs(vmax - vmin)
> 732 meanv = 0.5*(vmax+vmin)
> --> 733 var = d
You need to update your mpl to the current release or svn. This was
fixed quite a few months ago, but I don't remember exactly when.
Eric
Brian Blais wrote:
> Hello,
>
> If I do the following:
>
> plot([1],[1],'o')
>
> it plots the one dot correctly.
>
> if, however, one of those numbers is
David,
I have made some changes in svn that address all but one of the points
you made:
[]
> if self.clip:
>mask = ma.getmaskorNone(val)
>if mask == None:
>val = ma.array(clip(val.filled(vmax), vmin, vmax))
>else:
>
I've been able to figure out how to easily do error bars on a plot_date.
Here is how I do it:
The variables coming in are "dates" which is an array of my dates (in
days since 0001-01-01), averages, p10 (which is the bottom of my
error bars), and p90 (which is the top of my error bars)
p
Greetings. I've been having lots of luck with my date plots. But
I've been having a problem getting the dateformatter to work. I'm
using the code below. The dates keep getting formatted with the
default, "Sep 28 2006" instead of what I want, "Sep 28"
Any thoughts?
from datetime import date
I don't recognize the error output at all, but it looks like you have an
old version. The current release is 0.87.7. I don't know of any
released version in which contour_demo.py did not run at all, though.
The X errors make me wonder whether you are trying to run from inside an
IDE.
My sugg
HI. I wand to have just horizontal grid lines. Is there any way to do
this? Thanks!
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions
Simson Garfinkel wrote:
> HI. I wand to have just horizontal grid lines. Is there any way to do
> this? Thanks!
gca().yaxis.grid(True)
gca().xaxis.grid(False)
Here is the grid method docstring:
def grid(self, b=None, which='major', **kwargs):
"""
Set the axis grid on or
10 matches
Mail list logo