Making Handy Rough Visualizations With Roughviz Python Library

Making Handy Rough Visualizations With Roughviz Python Library

RoughViz Python Library Is Extremely Tremendous In Making Handwritten Sketched Visualizations That Is Sometimes Needed To break The Dry Nature Of Some Data Visualization Especially For Managers Who Get Bored From Routine Reports.

I Consider This Library As The Candy Of Visualizations.

Here I Will Try To Make Few Examples From The Git Hub Repository Of This Open Library.

Assume That We Have An Excel Spreadsheet That Is Containing The Following Data

    Month	    Hospital A Revenue	  Hospital B Revenue
0   JAN	        1100000	              1110000
1	FEB	        1125000	              1125000
2	MARCH	    1150000	              1260000
        

Lets Load Our Needed Libraries

!pip?install?roughviz

import?roughviz

import?pandas?as?pd?

Then Lets Read Our Data Using This Pandas Snippet

df?=?pd.read_excel('/content/Data?For?Roughviz.xlsx')
df
roughviz.bar(df["Month"],?df["Hospital?A?Revenue"],?axisRoughness?=?0.3,?axisStrokeWidth?=?0.4,?roughness=1.3,?highlight="green")
        

Now We Drew Our First Vertical Bar Chart

No alt text provided for this image

Lets Try To Make It Horizontal Bars


roughviz.barh(df["Month"],?df["Hospital?B?Revenue"],?axisRoughness?=?0.1,?axisStrokeWidth?=?20.7,?roughness=2.3,?highlight="gray")        
No alt text provided for this image

Lets Have A Quick Look On This Delicious Pie

No alt text provided for this image

And Finally Lets See This Tasty Doughnut


roughviz.donut(df["Month"],?df["Hospital?B?Revenue"],?axisRoughness?=?0.7,?axisStrokeWidth?=?0.7,?roughness=2.3,?highlight="gray")        
No alt text provided for this image

Data Link And Colab Notebook Link Are Shown Below In The Comments

Dr.Mostafa Samy, BDS

Dentist | Healthcare Data Science / A.i | Generative A.i for healthcare "clinical LLM's" | Digital Healthcare Transformation & Integration | MSc Operations Research | Applied Statistics(FGSSR) | DTQM( AICPD).

3 年
Dr.Mostafa Samy, BDS

Dentist | Healthcare Data Science / A.i | Generative A.i for healthcare "clinical LLM's" | Digital Healthcare Transformation & Integration | MSc Operations Research | Applied Statistics(FGSSR) | DTQM( AICPD).

3 年

要查看或添加评论,请登录

Dr.Mostafa Samy, BDS的更多文章

社区洞察

其他会员也浏览了