Python + matplotlib implements the gorgeous text box DEMO code, pythonmatplotlib
Gorgeous text box demonstration
First, let's take a look at the demo results:
Implementation Code
Import matplotlib. pyplot as pltplt. text (0.8, 0.5, "python", size = 50, rotation = 30 ., ha = "center", va = "center", bbox = dict (boxstyle = "round", ec = (1 ., 0.5, 0.5), fc = (1 ., 0.8, 0.8),) plt. text (0.75, 0.6, "www.jb51.net", size = 50, rotation =-30 ., ha = "right", va = "top", bbox = dict (boxstyle = "square", ec = (1 ., 0.5, 0.5), fc = (1 ., 0.8, 0.8),) plt. draw () plt. show ()
Summary
The above is all about Python + matplotlib's gorgeous text box DEMO code. I hope it will help you. If you are interested, you can continue to refer to other related topics on this site. If you have any shortcomings, please leave a message. Thank you for your support!