Questions tagged [plt]

19 questions
0
votes
2 answers

TypeError 'type' object has no attribute '__getitem__' when drawing a 3D-plot

Below is my fuction: def draw3D(draw_tick, matrixArray): print "Drawing tick = %d\n" % draw_tick matrix = matrixArray[draw_tick - 450] fig = plt.figure() ax = fig.gca(projection='3d') X = np.arange(-40, 40, 1) Y =…
0
votes
1 answer

Why GOT entry offset appears wrong?

I wrote simple shared library: extern void some_func(void); void function(void) { some_func(); } Compiled/built: gcc -fPIC -mcmodel=large -c test.c -o test.o gcc -fPIC -shared test.o -o libtest.so Disassembled, to see how some_func is…
Bulat M.
  • 680
  • 9
  • 25
0
votes
1 answer

Looking to add multiple xtick labels for two parallel bar charts

I have a dataset that looks like this: I want to do the following: Make sure the bars do not overlap. Treat each bar like a separate dataset, i.e. the labels on the x axis should be separate, one for the yellow series, one for the red series.…
Dhruv Ghulati
  • 2,976
  • 3
  • 35
  • 51
-3
votes
1 answer

convert my data from character array to numeric array

I am reading a plt file but I find a problem to convert my data from character array to numeric array. I tried with str2num and str2double the reulst is always : [] or NaN. [filename pathname] = uigetfile({'*.plt'},'File Selector'); fullpathname =…
1
2