On 23/01/18 23:42, Vincent Davis wrote: > On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber <wlfr...@ix.netcom.com> > wrote: > >> On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis >> <vinc...@vincentdavis.net> declaimed the following: >> >>> Looking for suggestions. I have an ordered list of names these names will >>> be reordered. I am looking to make a plot, graph, with the two origins of >> >> IE: you have two lists with the same items in different orders... >> >>> the names in separate columns and a line connecting them to visually >>> represent how much they have moved in the reordering. >>> Surely there is some great example code for this on the net an am not >>> finding a clean example. >>> >> >> Determine positions: >> >> pos = [] >> for p, name in enumerate(first_list): >> np = second_list.index(name) >> pos.append( (name, p, np) ) >> >> for (name, p, np) in pos: >> draw_line((1,p) , (2, np)) >> label( (1, p), name) >> >> Exact details of graphics package and scaling left as an exercise > > > Actualy, it’s recomendations for a graphing package And an example using it > for such a graph that I am most interested in. I know how to relate the > names on the 2 lists. > > >> -- >> Wulfraed Dennis Lee Bieber AF6VN >> wlfr...@ix.netcom.com HTTP://wlfraed.home.netcom.com/ >> >> -- >> https://mail.python.org/mailman/listinfo/python-list >>
Maybe http://graphviz.org/ and http://matthiaseisen.com/articles/graphviz/ Duncan -- https://mail.python.org/mailman/listinfo/python-list