Hello,

I have just chaged over to the Qt4Agg backend so I can use Pierre Raybaut's
addition of editing cuves and parameters (thanks for this functionality).  I
have found a small issue.  Whenever I apply changes with more than one
trace/curve, the colour of the second curve changes.  The example below is
enough to show the issue:

from matplotlib import pyplot
import numpy as np

a = np.random.rand(100)
b =a*1.5
fig = pyplot.figure()
ax = fig.add_subplot(111)
ax.plot(a)
ax.plot(b)
pyplot.show()

The  example above changes second trace from a default of green to a light
green when I use the edit button.  Just pressing 'apply' without any changes
should be enough to trigger the change.  It appears that the addin is not
getting the correct color from the plot and so apply is appying the
incorrect color back into the plot.

Also if I try to set color for a trace like this:
fig = pyplot.figure()
ax = fig.add_subplot(111)
ax.plot(a,'r')
pyplot.show()
It works but then when I press the edit curves button, I get:

Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py",
line 469, in edit_parameters
    figureoptions.figure_edit(axes, self)
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py",
line 154, in figure_edit
    icon=get_icon('qt4_editor_options.svg'), apply=apply_callback)
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 460, in fedit
    dialog = FormDialog(data, title, comment, icon, parent, apply)
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 384, in __init__
    parent=self)
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 362, in __init__
    widget = FormComboWidget(data, comment=comment, parent=self)
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 344, in __init__
    widget = FormWidget(data, comment=comment, parent=self)
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 233, in __init__
    self.setup()
  File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 256, in setup
    selindex = value.pop(0)
AttributeError: 'tuple' object has no attribute 'pop'

I am on version 1.0.0 and XP


Thanks,
Bevan




-- 
View this message in context: 
http://old.nabble.com/Qt4Agg-backend---edit-curves-and-axis-parameters-tp29754925p29754925.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to