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.5, 0.5),
                   fc=(1., 0.8, 0.8),
                   )
         )


plt.text(0.3, 1.0, "momentum", size=30,rotation=-25.,
         ha="right", va="top",
         bbox=dict(boxstyle="square",
                   ec=(1., 0.5, 0.5),
                   fc=(1., 0.8, 0.8),
                   )
         )

plt.text(0.7, 0.6, "Adam", size=50,
         ha="right", va="top",
         bbox=dict(boxstyle="roundtooth",
                   ec=(1., 0.5, 0.5),
                   fc=(1., 0.8, 0.8),
                   )
         )
plt.axis("off")
plt.show()

No comments:

Post a Comment

Comparing features of LangGraph vs CrewAI

LangGraph Orchestration vs CrewAI Orchestration The following table compares LangGraph and CrewAI orchestration across their menta...