简体   繁体   中英

Create PNG with a row of numbers inside boxes with Python

How could I create, using python, a graphic with a row of numbers inside boxes and arrows crossing from one box to another (as in the image below)? Then I'd like to save it as a PNG file.

图形示例

The reason I'd like to use python is that I have to create this kind of graphics in bulks, varying the numbers inside the boxes.

You can do this with pygame. If you draw the boxes and text you can do pygame.image.save(Screen,'numbersandarrows.png')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM