There was a question on ask.sagemath.org -- http://ask.sagemath.org/question/995/show-function-for-graphs-is-not-working -- about some unusual graph display issues, where the graph plot being shown didn't seem to correspond to the graph. My first thought was that it was user error, esp. given that the OP reported an independent bug on his part, and when I ran his worksheet myself it behaved perfectly..
.. until it didn't. And then it did again. Fortunately I took a screenshot to convince myself I wasn't crazy, and I can now consistently reproduce the problem (sage 4.8.alpha2, firefox 8.0 on ubuntu) by interrupting and restarting G = graphs.RandomGNP(5, 0.4) print G.edges() show(G) print 'after show' sleep(10) Doesn't take long to get into a state where the figure shown doesn't match the graph. Right now I'm looking at one where G.edges() returns [(0, 2, None), (0, 4, None), (1, 3, None), (1, 4, None), (2, 4, None)], but the only edge shown on the figure is (0,2). Pretty sure it's a caching problem because the underlying figure is actually the right one! That is, if you look at the image sage0.png saved in the notebook data, it's correct. If you follow the link to the image, which for me was http://localhost:8000/home/admin/2/cells/1/sage0.png?2, then you see the right one. If you refresh the page, you see the right one, and if you type show(G) afterwards you see a (new) image which is correct, so it's not a problem with G. Does interrupting and restarting break the synchronization which (I'm wildly guessing here-- I know nothing about the notebook) increments the suffix number to avoid problems like this? Doug -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
