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

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...