Python Forum
Help with plot, how to show ranking with boxes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with plot, how to show ranking with boxes
#1
[Image: data-visualization-gelman-1024x768.jpg]

Hi! I am quite new to Python and I would like to reproduce the graph of the picture and, if possible, divide the boxes into three categories. I need the size of the boxes to be proportional to a total value and have them next to each other.

I have tried with plt.scatter(), changing the shape to a square and then plotting each squared with an x and y value, but I would like to find a more general code, such that the boxes stay in contact even if I change their size.

Any input is appreciated!
Reply
#2
Look at tkinter as a possibility, it should be possible as there are basic shapes, specifically, look at canvas widget.
Please:
  • make an attempt:
  • show your code
  • show any error messages complete and unaltered
  • explain where you are having trouble
  • Do all above, and we will be glad to help
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Draw bounding boxes on live feed Jerome 0 280 Jan-20-2024, 10:50 PM
Last Post: Jerome
  PIL Image im.show() no show! Pedroski55 2 962 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  Use ranking function for different lists klatlap 6 2,005 Feb-15-2022, 11:31 PM
Last Post: klatlap
  PIL Image im.show() no show! Pedroski55 6 4,888 Feb-08-2022, 06:32 AM
Last Post: Pedroski55
  How to read check boxes from word document srikanthpython 0 2,592 Mar-30-2021, 01:58 PM
Last Post: srikanthpython
  drf ordering by custom field and add ranking in to_representation tomfong521 0 1,855 Mar-24-2021, 09:56 AM
Last Post: tomfong521
  How to plot intraday data of several days in one plot mistermister 3 2,904 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  Checkbuttons always come up as black boxes regardless of the state kenwatts275 5 4,713 Jul-07-2020, 08:00 PM
Last Post: kenwatts275
  How to plot vertically stacked plot with same x-axis and SriMekala 0 1,918 Jun-12-2019, 03:31 PM
Last Post: SriMekala

Forum Jump:

User Panel Messages

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