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

 using Microsoft.AspNetCore.Mvc; using System.Xml.Linq; using System.Xml.XPath; //<table class="common-table medium js-table js-stre...