Friday, May 21, 2021

Fun with Matplotlib : Creating attractive text arrangement

 

plt.text(1.1,0.9"RMSProp", size=30, rotation = 25.,
         ha="right", va="top",
         bbox=dict(boxstyle="square",
                   ec=(1., 0.50.5),
                   fc=(1., 0.80.8),
                   )
         )


plt.text(0.31.0"momentum", size=30,rotation=-25.,
         ha="right", va="top",
         bbox=dict(boxstyle="square",
                   ec=(1., 0.50.5),
                   fc=(1., 0.80.8),
                   )
         )

plt.text(0.70.6"Adam", size=50,
         ha="right", va="top",
         bbox=dict(boxstyle="roundtooth",
                   ec=(1., 0.50.5),
                   fc=(1., 0.80.8),
                   )
         )
plt.axis("off")
plt.show()

No comments:

Post a Comment

Misc Javascript points

 Nodejs can support multithreading through use of promises _ is the numeric separator for javascript, that means the numbers 10_000, 11.23_0...