Python Forum
How to plot 3D graph of non numerical value?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to plot 3D graph of non numerical value?
#1
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  restrict user input to numerical values MCL169 2 907 Apr-08-2023, 05:40 PM
Last Post: MCL169
  first time use plot - I get empty graph korenron 6 2,071 Feb-04-2023, 02:14 PM
Last Post: deanhystad
Question Inserting Numerical Value to the Element in Optionlist and Printing it into Entry drbilgehanbakirhan 1 802 Jan-30-2023, 05:16 AM
Last Post: deanhystad
  Changing a string value to a numerical value using python code and a lamda function Led_Zeppelin 6 1,598 Jul-05-2022, 11:29 PM
Last Post: deanhystad
  Sorting numerical values provided by QAbstractTableModel BigMan 0 1,360 Jun-04-2022, 12:32 AM
Last Post: BigMan
  Unable to plot the graph as needed drunkenneo 1 6,339 May-26-2021, 11:04 AM
Last Post: cygnus_X1
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,575 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  Plot Graph quest_ 2 2,115 Jan-18-2021, 07:58 PM
Last Post: quest_
  How to plot intraday data of several days in one plot mistermister 3 2,896 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  change numerical values to categorical names JoeOpdenaker 3 2,938 Nov-02-2020, 01:32 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020