Python Forum

Full Version: How to plot 3D graph of non numerical value?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need some help in plotting a 3D graph with a non-numerical column value. My colleague told me that we can draw such a graph in python and I am very new to it. Can you please guide me or show some example that could help me.
Let say this is my dataset

P Q R Shape
1 1 98 SC
1 2 97 SC
1 3 96 SC
1 4 95 SC
1 5 94 SC
1 6 93 SC
1 7 92 SC
1 8 91 SC
1 9 90 SC
1 10 89 SC
1 11 88 SC
1 12 87 SC
1 13 86 SC
1 14 85 SC
1 15 84 SC
1 16 83
1 17 82
1 18 81
1 19 80
1 20 79
1 21 78
1 22 77
1 23 76
1 24 75
1 25 74
1 26 73
1 27 72
1 28 71
1 29 70
1 30 69 DR
1 31 68 DR
1 32 67 DR
1 33 66 DR
1 34 65 DR
1 35 64 DR
1 36 63 DR

//Here no value in the shape column mean overlap of two or more shapes for whom we are not interested.

I have to plot a 3D graph for all partition of number n=100 between three variables P:Q:R showing which shape is optimal from the shape column (shape column contain 1 distinct shapes from [SC, DR, BR] for each ratio of P:Q:R ). And I am stuck how to plot this non-numerical value shape column. The above sample dataset contains a few lines of my csv file that contains four columns where first 3 (P,Q,R) act as the coordinates where I have to plot values of Shape column. Please help me how I can draw that?