Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plot 3 variables
#1
Hello,
I would like to make a plot according to 3 variables. I have a database that includes several theatrical performances at the Comédie-Français. The three variables in question are 'acts' (number of acts in the play: 1, 3 or 5), 'genre' (comedy / tragedy), and 'verse / prose'.
I would like to make three graphs, one for the 1 act plays, one for the 3 act plays and one for the 5 act plays. On each plot, there would be the number of pieces played according to their genre and nature (verse / prose). I would like the graph (for one-act pieces for example) to look like the attachment Plot Want.

Where the two colors (red and green) represent 'verse' and 'prose'.

For the moment I only manage to include 'vers / prose' according to the number of acts, which gives the image Plot Have


But as soon as I try to add another variable ('genre'), it doesn't work...

You will find the notebook on my GitHub: https://github.com/MathisGitHub/La-Comed...021---1432

This is entry 107.

Do you have any idea how to do this?

I thank you in advance Big Grin Cool Shy Rolleyes Tongue Smile Heart

Attached Files

Thumbnail(s)
       
Reply
#2
"matplotlib 3d bar plot" on google will help you

Nota: comédie Française (don't forget the last "e" Wink )
Reply
#3
(Nov-08-2021, 04:50 PM)paul18fr Wrote: "matplotlib 3d bar plot" on google will help you

Nota: comédie Française (don't forget the last "e" Wink )

Thanks for your reply Paul. Although, it's not really what i'd like to end up to. I'd like to have the same think that I have on my attachment (Plot Want.png) :/
Reply
#4
Any answer ?? What Paul suggested is not what i want at all. I think you are a good guy Paul but it 's not what i'd like. But you seem nice tho.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to plot intraday data of several days in one plot mistermister 3 2,903 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  Plotting 3D surface plot for non-linear multivariate regression with 5 variables khwajaosama 0 2,707 Jul-02-2020, 04:50 AM
Last Post: khwajaosama
  How to plot vertically stacked plot with same x-axis and SriMekala 0 1,918 Jun-12-2019, 03:31 PM
Last Post: SriMekala
  How to plot implicit functions (with two variables) in scipy python using matplotlib? Jay_Nerella 1 7,932 May-11-2019, 01:17 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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