Michael thanks for that - I don't think the problem is the reading of the data since I plotted a small dot on the canvas every time I read a data point and the final pattern looks OK. All I need to do is join the dots properly so I guess it's something silly in the PYX syntax I'm using?
Best regards Alun Griffiths At 13:45 09/06/2006, Michael J Gruber wrote: >Etrade Griffiths venit, vidit, dixit 2006-06-09 12:58: > > Hi > > > > sorry if this is seems a trivial request but I am trying to read a set of > > polygons from file and plot them using PyX. PyX runs OK (ie no errors) > but > > nothing appears on the canvas! The file contains data in this form > > > > poly_1, x0, y0 > > poly_1, x1, y1 > > ... > > poly_2, x0, y0 > > > > Here is a code snippet >... > >Make sure you check the parts you didn't show us: the parsing of the >input (comparing poly identifiers) and the handling of the very first >and very last points. I'll attach some (ugly) code that works here, >using the same structure you're trying to use. _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
