James Steward - 2009-03-27

Hi,

I am running Ubuntu 7.10.  I believe I have the required packages installed.
When I run ./pyplot.py I get

./pyplot.py
Traceback (most recent call last):
  File "./pyplot.py", line 369, in graph_expose
    paint(ctt, *graph.window.get_size())
  File "./pyplot.py", line 393, in paint
    gdk_set_source_rgb(ctt, clrs[0])
  File "./pyplot.py", line 271, in gdk_set_source_rgb
    clr = gtk.gdk.color_parse(str)
ValueError: unable to parse colour specification

And if I add a function like sin(x) I get

Traceback (most recent call last):
  File "./pyplot.py", line 276, in enfnc_key_press
    btfuncok_clicked(widget)
  File "./pyplot.py", line 350, in btfuncok_clicked
    graph_expose(widget, None)
  File "./pyplot.py", line 369, in graph_expose
    paint(ctt, *graph.window.get_size())
  File "./pyplot.py", line 393, in paint
    gdk_set_source_rgb(ctt, clrs[0])
  File "./pyplot.py", line 271, in gdk_set_source_rgb
    clr = gtk.gdk.color_parse(str)
ValueError: unable to parse colour specification

And no graph is displayed.

What am I doing wrong?

James.