You have to first call "SetData2D" to create a veusz dataset, and then use the newly created dataset in the "g.Set" command in place of Bz.
Steve On Thu, Jun 6, 2013 at 2:09 PM, Steve Swanekamp < steve.swanek...@nrl.navy.mil> wrote: > Hello, > > I have a large number of files that contain electric and magnetic field > data from different times from a PIC simulation of a plasma. I have been > successful at teaching Veusz to read in the data and do a contour plot of a > single frame but now I want to automate the process in python. I have been > able to read the data into python but plotting it has been problematic. I > am using the embed feature of Veusz (which I have successfully used for x-y > plots before) and ran into the following error when trying to make the > contours > > # Make contours > > g.To('/page1/graph1/contour1') > > g.Set('data', Bz) > > Traceback (most recent call last): > > File "U:\veusz\contour_movie.py", line 60, in <module> > > g.Set('data', Bz) > > File "C:\Program Files\Veusz\embed.py", line 62, in runner > > g.To('/page1/graph1/image1') > > File "C:\Program Files\Veusz\embed.py", line 301, in runCommand > > return self.sendCommand( (self.winno, cmd, args[1:], args2) ) > > File "C:\Program Files\Veusz\embed.py", line 292, in sendCommand > > retobj = cPickle.loads(rets) > > ImportError: No module named veusz.setting.setting > > > The numpy array Bz contains the 513x513 array that I would like to image. > Am I doing something wrong? Any help would be greatly appreciated. > > Steve Swanekamp > Plasma Physics Division > Naval Research Laboratory > Washington, DC > > _______________________________________________ > Veusz-discuss mailing list > Veusz-discuss@gna.org > https://mail.gna.org/listinfo/veusz-discuss > >
_______________________________________________ Veusz-discuss mailing list Veusz-discuss@gna.org https://mail.gna.org/listinfo/veusz-discuss