Questions tagged [plt]
19 questions
8
votes
1 answer
Saving matplotlib table creates a lot of whitespace
I'm using matplotlib and python 2.7 to create some tables. When I save the tables, the images come out square, even if the table is only 1 - 2 rows, creating a lot of empty space when I add them to an auto-generated PDF later.
The an example of how…

halolord01
- 173
- 1
- 3
- 8
8
votes
2 answers
How do I force gcc to call a function directly in PIC code?
Consider the following function:
extern void test1(void);
extern void test2(void) {
test1();
}
This is the code gcc generates without -fpic on amd64 Linux:
test2:
jmp test1
When I compile with -fpic , gcc explicitly calls through the PLT…

fuz
- 88,405
- 25
- 200
- 352
7
votes
1 answer
find address of PLT stub
I am working on Linux X86_64.
I have a need to determine the address of a specific PLT entry in an ELF file given the name of the dynamic function that the entry represents.
I can figure out the file offset from the address, but I need to be able to…

codemonkey
- 161
- 1
- 9
6
votes
1 answer
TypeError: __init__() missing 1 required positional argument: 'figure'
When I am trying to plot an interactive plot by the code follows:
import matplotlib.pyplot as plt
import PyQt5
%matplotlib qt
...
plt.plot(a_list,b_list)
plt.show()
I got error messages below:
…

Xiaoyu Liu
- 165
- 3
- 11
5
votes
1 answer
Build a Bar Chart from a List of Tuples - Python
I need to build a bar chart from the list of tuples that I have got with key names as labels for each bar shown on the x axis, and values as heights of the bars.
Here is how my input looks like:
top20 = [('Blues', 2008), ('Guadeloupe', 1894),…

Maiia S.
- 313
- 6
- 12
5
votes
4 answers
Plot dataframe columns against each other
I have this df :
CET MaxTemp MeanTemp MinTemp MaxHumidity MeanHumidity MinHumidity revenue events
0 2016-11-17 11 9 7 100 85 63 385.943800 rain
1 2016-11-18 9 6 3…

joasa
- 946
- 4
- 15
- 35
4
votes
3 answers
plt.show () does not open a new figure window
I am trying to show some plots using plt.show (). i get the plots shown on the IPython console, but I need to see each figure in a new window. What can I do ?

ufdul
- 99
- 2
- 3
- 11
4
votes
1 answer
How to code bar charts with patterns along with colours in Python?
The following code prints a bar chart with four colours:
import matplotlib.pyplot as plt
barlist=plt.bar([1,2,3,4], [1,2,3,4])
barlist[0].set_color('r')
barlist[1].set_color('g')
barlist[2].set_color('y')
plt.show()
The problem is that when…

Ébe Isaac
- 11,563
- 17
- 64
- 97
3
votes
1 answer
Why trampoline from PLT to GOT instead of directly jumping to GOT?
I'm studying how the GOT and PLT are used in dynamic linking. I'm confused about why each dynamically linked function call seems to jump to a position in the PLT which will always jump to the same position in the GOT. Why not just jump to that…

Praxeolitic
- 22,455
- 16
- 75
- 126
3
votes
1 answer
Python: Plotting sublists on matplotlib.pyplot
I wanted to plot list, with sublists, each containing name and score.
Sublist item one = name as X-label, and item two = score as Y label.
datacount = (("mike", 9), ("john", 8), ("smith", 7), ("niki", 7), ("garlick", 7),
("don", 7),…

J.A
- 204
- 1
- 4
- 13
2
votes
1 answer
How to add a legend to a scatter graph?
I have plotted a scatter graph that takes two columns from a table using:
df.plot.scatter("volume/mm^3", "Cost per m^3/$")
plt.title("Volume vs. Cost Analysis", size = 16)
plt.ylim((0,80000))
plt.xlim((7500,30000))
I am now trying to either…

Greg Brewster
- 47
- 5
1
vote
1 answer
Does every .so file have a PLT/GOT?
I've been thinking about this for a while because I've observed that even really fundamental libraries like libc have a GOT/PLT, consisting of important functionality such as malloc() and its friends.
Is it even possible to create a shared library…

rmg
- 59
- 5
1
vote
2 answers
Tkinter window changes dimensions or resolution when I use pyplot
First time posting, but have found these forums incredibly helpful with my python learning!
I have a problem when I call plt.plot as it's resizing my tkinter window. I've tried this in python 2.7 and 3.5 both seem to have the issue.
Below is just…

Gardener85
- 369
- 1
- 9
1
vote
1 answer
Scatter plots in Pandas: Plot by category with different color and shape combinations
I would like to plot a data-set by its categories, using geometric shapes such as circle, triangle and square to represent category 1 and colors to represent category 2. The output would have varying combination of the geometric shapes and colors…

Anjo
- 145
- 1
- 11
1
vote
2 answers
Powerpc -msecure-plt verification
I am trying to compile with -msecure-plt, and although compilation is completing just fine, when looking at the memory maps it doesn't look like the flag is actually doing anything. I am assuming it is not doing anything because the got and plt…
user6693004