¡@

Home 

python Programming Glossary: fig

pylab.ion() in python 2, matplotlib 1.1.1 and updating of the plot while the program runs

http://stackoverflow.com/questions/12822762/pylab-ion-in-python-2-matplotlib-1-1-1-and-updating-of-the-plot-while-the-pro

a plot and show the already obtained results as a pylab.figure in python 2 specifically python 2.7 with a stable matplotlib.. the code runs cleanly without errors but does not show the figure. A little trial and error with the python2 interpreter seemed.. work either. Again it runs cleanly but does not show the figure. It seems to do so only when waiting for user input. It is..

2D and 3D Scatter Histograms from arrays in Python

http://stackoverflow.com/questions/14002480/2d-and-3d-scatter-histograms-from-arrays-in-python

ax 0 points.append xs i ys j v points np.array points fig pyplot.figure sub pyplot.scatter points 0 points 1 color 'black'.. xs i ys j v points np.array points fig pyplot.figure sub pyplot.scatter points 0 points 1 color 'black' marker.. points.append xs i ys j zs k v points np.array points fig pyplot.figure sub fig.add_subplot 111 projection '3d' sub.scatter..

How can I attach a pyplot function to a figure instance?

http://stackoverflow.com/questions/14254379/how-can-i-attach-a-pyplot-function-to-a-figure-instance

can I attach a pyplot function to a figure instance Previously I had a problem with the interference.. problem with the interference between multiple Matplotlib figures . Finally i got tracked that to an issue that some pyplot.. an issue that some pyplot functions do not attach to their figure instance but can be rendered in some other figure instances..

How to draw diagrams like this?

http://stackoverflow.com/questions/14824893/how-to-draw-diagrams-like-this

this I want to use matplotlib to draw more or less the figure I attached below which includes the two intersecting planes.. axes3d import matplotlib.pyplot as plt import numpy as np fig plt.figure ax fig.add_subplot 111 projection '3d' dim 10 X Y.. import matplotlib.pyplot as plt import numpy as np fig plt.figure ax fig.add_subplot 111 projection '3d' dim 10 X Y np.meshgrid..

plotting results of hierarchical clustering ontop of a matrix of data in python

http://stackoverflow.com/questions/2982929/plotting-results-of-hierarchical-clustering-ontop-of-a-matrix-of-data-in-python

in Python An example is in the bottom of the following figure http www.coriell.org images microarray.gif I use scipy.cluster.dendrogram.. 40 D i j abs x i x j # Compute and plot first dendrogram. fig pylab.figure figsize 8 8 ax1 fig.add_axes 0.09 0.1 0.2 0.6 Y.. abs x i x j # Compute and plot first dendrogram. fig pylab.figure figsize 8 8 ax1 fig.add_axes 0.09 0.1 0.2 0.6 Y sch.linkage..

How can I improve my paw detection?

http://stackoverflow.com/questions/4087919/how-can-i-improve-my-paw-detection

row and column values to some index. As you can see in the figure this works quite well in most cases. However there are a.. it reaches several empty rows thus expanding the area. I figure I could compare the columns and see if they exceed a certain.. attributes such as coordinates or height width. I can't figure out how to take these attributes and store them in some variable..

matplotlib Update a Plot

http://stackoverflow.com/questions/4098131/matplotlib-update-a-plot

Update a Plot I'm having issues with redrawing the figure here. I allow the user to specify the units in the time scale.. the plot to simply update not append another plot to the figure. def plots global vlgaBuffSorted cntr result collections.defaultdict.. if you're embedding things in a tkinter plot... plt.ion fig plt.figure ax fig.add_subplot 111 line1 ax.plot x y 'r ' # Returns..

Is there a matplotlib equivalent of MATLAB's datacursormode?

http://stackoverflow.com/questions/4652439/is-there-a-matplotlib-equivalent-of-matlabs-datacursormode

self.y self.annotation.set_visible True event.canvas.draw fig plt.figure line plt.plot range 10 'ro ' fig.canvas.mpl_connect.. self.annotation.set_visible True event.canvas.draw fig plt.figure line plt.plot range 10 'ro ' fig.canvas.mpl_connect 'pick_event'.. fig plt.figure line plt.plot range 10 'ro ' fig.canvas.mpl_connect 'pick_event' DataCursor plt.gca line.set_picker..

Python/Matplotlib - Is there a way to make a discontinuous axis?

http://stackoverflow.com/questions/5656798/python-matplotlib-is-there-a-way-to-make-a-discontinuous-axis

with the same spacing. x np.r_ 0 1 0.1 9 10 0.1 y np.sin x fig ax ax2 plt.subplots 1 2 sharey True # plot the same data on.. with the same spacing. x np.r_ 0 1 0.1 9 10 0.1 y np.sin x fig ax ax2 plt.subplots 1 2 sharey True # plot the same data on..

Matplotlib - label each bin

http://stackoverflow.com/questions/6352740/matplotlib-label-each-bin

'Agg' import matplotlib.pyplot as pyplot ... fig pyplot.figure ax fig.add_subplot 1 1 1 n bins patches ax.hist.. 'Agg' import matplotlib.pyplot as pyplot ... fig pyplot.figure ax fig.add_subplot 1 1 1 n bins patches ax.hist measurements.. matplotlib.pyplot as pyplot ... fig pyplot.figure ax fig.add_subplot 1 1 1 n bins patches ax.hist measurements bins 50..

why is plotting with Matplotlib so slow?

http://stackoverflow.com/questions/8955869/why-is-plotting-with-matplotlib-so-slow

plotting library from pylab import import time ion fig figure ax1 fig.add_subplot 611 ax2 fig.add_subplot 612 ax3 fig.add_subplot.. plotting library from pylab import import time ion fig figure ax1 fig.add_subplot 611 ax2 fig.add_subplot 612 ax3 fig.add_subplot.. library from pylab import import time ion fig figure ax1 fig.add_subplot 611 ax2 fig.add_subplot 612 ax3 fig.add_subplot..

How to speed up matplotlib when plotting and saving lots of figures?

http://stackoverflow.com/questions/11688318/how-to-speed-up-matplotlib-when-plotting-and-saving-lots-of-figures

'test_imag_real' str pp '.png' format 'png' dpi 100 print 'Fig ' str pp ' has been saved' print Excution time time.clock start_time.. is ch2 ######### Hardworking...please wait ######### Fig 0 has been saved Excution time 2.52576639619 Fig 1 has been.. ######### Fig 0 has been saved Excution time 2.52576639619 Fig 1 has been saved Excution time 2.59867230708 Fig 2 has been..