Questions tagged [matplotlib-table]

12 questions
6
votes
1 answer

Setting row edge color of matplotlib table

I've a pandas DataFrame plotted as a table using matplotlib (from this answer). Now I want to set the bottom edge color of a given row and I've this code: import pandas as pd import numpy as np import matplotlib.pyplot as plt import…
Abbas
  • 3,872
  • 6
  • 36
  • 63
3
votes
0 answers

How to create a multiple line cell in pyplot table

Is it possible to use a multiple line cell in pyplot (Matplotlib) table ? ... or merge cells in pyplot table. Here an example : import matplotlib.pyplot as plt plt.figure() table1 = [[1,2,3],[4,5,6]] plt_table1=plt.table(cellText=table1,…
Clément v
  • 123
  • 1
  • 7
1
vote
0 answers

How to get hyperlinks in a matplotlib table?

I have a matplotlib table ax.table(twoD_array_of_links) where the links look like [['PSMA6', '
Alex Lenail
  • 12,992
  • 10
  • 47
  • 79
1
vote
0 answers

Bad pyplot.table resolution

Kind of newbie in Python... I am doing some estimations on Python and I want to plot as tables the results. My problem is that the plot i get is very small, so if i scale it look like cr@p because of resolution. Here is the code i use: (not so…
OUTATIME
  • 11
  • 2
1
vote
0 answers

Square cells in matplotlib table?

I want to display a sudoku grid from the values in an array. Here's my code fig, ax =plt.subplots(1,1) ax.axis('tight') ax.axis('off') ax.table(cellText=sudoku2,loc="center") plt.show() And here's my output sudokugrid How do I get the cells to be…
SteveAdmin
  • 11
  • 2
1
vote
0 answers

Text within a cell in matplotlib table

I am drawing text in a table in matplotlib. When text is more than the cell width it is drawn outside the cell. I would like the to wrap the text. Is there a solution for that? Thanks
Shan
  • 18,563
  • 39
  • 97
  • 132
1
vote
1 answer

How to format values with comma separator in matplotlib table with an attached chart?

I have a pandas dataframe which I used the pandas.plot function to plot a bar chart. Within the function I set the table function to on. How can I format the values in this accompanying table with comma separators? I am able to do these to the axis…
bissa92
  • 11
  • 2
1
vote
1 answer

How can I increase the size of the table?

I'm trying to display a pandas dataframe as an image, but when I use plt.show(), I got a small picture of the table, inside a big (invisible) subplot, occupying 90% of the generated window. I used this code: # ... ax = plt.subplot() …
Enzo Dtz
  • 361
  • 1
  • 16
0
votes
0 answers

using only one parametr from ax.table {bbox} for height (depends from length of text) of rows in matplotlib

I have a problem in formating pdf report. One value in my record list is a big text, that need to be wrap and the size of row must cover all text. I've tried by using bbox option from:…
0
votes
1 answer

Increasing Python table font in Jupyter

Upon trying to increase the size of a Matplotlib table generated from a csv file, the following code will not work to enlarge the font of the table's text: plt.rcParams["figure.figsize"] = (8,5.5) How can I increase the size of the font in Jupyter?
luxstack
  • 9
  • 4
0
votes
1 answer

Change or set font properties of matplotlib table

I have a table in matplotlib, which I would to change the font properties of, e.g. change the font family and font size. I can change the font size, as shown below based on the post here: How to change the table's fontsize with matplotlib.pyplot .…
RVA92
  • 666
  • 4
  • 17
0
votes
1 answer

ax.hlines and ax.axhline doesn't work as expected in Matplotlib table

I want to create Matplotlib tables to present some data and wanted to add lines for every row. I thought that axhline was exactly what I needed. However, I ran into some problems. The axline function adds a line for every row, but it isn't aligned…
Strijder
  • 46
  • 2