Home > other >  Python loop and GIF images generated
Python loop and GIF images generated

Time:10-04

I want to ask how to generate images implementation cycle save I drew a network model with code figure thinking slowly render to 20 from 0 a node graph is generated I want to save it took me a while loop cycle increase node n run code only preserved the picture means the circulation loop only once wanted to ask how to change to cycle 20 pictures


I also wanted to ask how to generate GIF traversal folder I picture name to be closing in on figures such as xxx1. The PNG to XXX. 20. The PNG and order of traversal generated GIF when it changed not 1-20 into 1 10 of 11 12 13 14 15 16 17 18 19 20 2 3 4 5 6 7 8 9 why such order

CodePudding user response:

Draw GIF, suggested matplotlib, another python when using the OS to traverse folder inside, get a list of the sort the default from left to right, from small to large, rows of a5. PNG would rank in c1. For example, in front of the PNG,
  • Related