Results 51 - 75 of 76 results out of about 490 pages. (0.17 seconds)
- Cookbook/Matplotlib/MulticoloredLine . . . 1 match
- ...'),
norm=plt.Normalize(0, 10))
lc.set_array(t)
lc.set_linewidth(3)
plt.gca().add_collection(lc)
plt.xlim(-1, 1)
plt.ylim(-1, 1)
plt.show()
}}}
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Matplotlib_and_Zope . . . 1 match
- ...external method in ZMI (e.g. Id -> mplchart, module name ->
mpl, function name -> chart).
3. Click the Test tab and you should see the sine plot.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Maps . . . 1 match
- ...and vectors over map projections.
Examples that illustrate this and more can be found in the examples
directory of the basemap source distribution.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Loading_a_colormap_dynamically . . . 1 match
- ...rm[i],g[i],g[i]])
blue.append([xNorm[i],b[i],b[i]])
colorDict = {"red":red, "green":green, "blue":blue}
return (colorDict)
}}}
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/LoadImage . . . 1 match
- ...~slippens/drupal/scipy_unscaledimsave )
* there was another (more direct) method suggested by http://jehiah.cz/archive/creating-images-with-numpy
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/LaTeX_Examples . . . 1 match
- ...asterized}}} option (which is silently ignored). Some other plot elements do however. I am looking into a solution for this. -- MichaelMcNeilForbes
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Interactive_Plotting . . . 1 match
- ..._wx2.py example script, and can then access the {{{mode}}} attribute of that object (self.toolbar.mode in that case) in your click handling method.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Gridding_irregularly_spaced_data . . . 1 match
- ... Bin')
plt.colorbar()
}}}
The binned data:
{{attachment:bin_small.png}}
Raw data superimposed on top of binned data:
{{attachment:raw_small.png}}
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/EmbeddingInWx . . . 1 match
- .... For plots with many points, the redrawing can take some time, so it is best to only redraw when the figure is released. Have a read of the code.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Django . . . 1 match
- ... with
".png". You can create an entry in your urls.py like this:
{{{
...
(r'^charts/simple.png$', 'myapp.views.charts.simple'),
...
}}}
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/DeletingAnExistingDataSeries . . . 1 match
- ...>,
<matplotlib.lines.Line2D instance at 0x427ce9ac>]
>>> del ax.lines[1]
>>> P.show()
}}}
which will plot three lines, and then delete the second.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/CompilingMatPlotLibOnSolaris10 . . . 1 match
- ...95191
* http://mail.python.org/pipermail/patches/2005-June/017820.html
* http://mail.python.org/pipermail/python-bugs-list/2005-November/030900.html
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Common_Errors . . . 1 match
- ...w(img, vmin=0, vmax=1, cmap=cm.gray, interpolation={{{nearest}}}). This also sets the color map to grays, and to use square blocks for the elements.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/Animations . . . 1 match
- ...ly implement
the required methods, I am making them available to the users to manage themselves but
am not assuming them in the axes drawing code.
----
CategoryCookbookMatplotlib...
- Cookbook/Matplotlib/AdjustingImageSize . . . 1 match
- ...pylab.imshow(X1, aspect='preserve')
axis2 = apply(pylab.axes, size2)
pylab.imshow(X2, aspect='preserve')
return axes1, axes2, figure
}}}
----
. CategoryCookbookMatplotlib...
- Cookbook/LoktaVolterraTutorial . . . 1 match
- ...of foxes')
p.ylim(1, ymax)
p.xlim(1, xmax)
p.title('IF contours')
f3.savefig('rabbits_and_foxes_3.png')
p.show()
}}}
{{attachment:rabbits_and_foxes_3v2.png}}
----
CategoryCookbook...
- Cookbook/KalmanFiltering . . . 1 match
- ...s[valid_iter],label='a priori error estimate')
pylab.xlabel('Iteration')
pylab.ylabel('$(Voltage)^2$')
pylab.setp(pylab.gca(),'ylim',[0,.01])
pylab.show()
}}}
----
CategoryCookbook...
- Cookbook/KDTree . . . 1 match
- ...s" % t1-t0
#import profile # using Python's profiler is not useful if you are
#profile.run('test()') # running the parallel search.
}}}
----
CategoryCookbook...
- Cookbook/Finding_Convex_Hull . . . 1 match
- ...n(pts)
k += 1
return n.asarray(pts)
if __name__ == "__main__":
points = n.random.random_sample((2,40))
hull_pts = convex_hull(points)
}}}
----
CategoryCookbook...
- Cookbook/Data_Acquisition_with_PyUL . . . 1 match
- ...turned up the frequency on the function generator to 480 Hz. You can see, indeed, that's what the {{{psd()}}} function tells us:
{{attachment:example4.png}}
----
CategoryCookbook...
- Cookbook/Data_Acquisition_with_NIDAQmx . . . 1 match
- ... mythread = WaveformThread( x, 250 )
# start playing waveform
mythread.start()
# wait 5 seconds then stop
time.sleep( 5 )
mythread.stop()
}}}
CategoryCookbook...
- Cookbook/CommTheory . . . 1 match
- ...B, BER,'-s')
plt.grid(True)
plt.legend(('analytical','simulation'))
plt.xlabel('Eb/No (dB)')
plt.ylabel('BER')
plt.show()
}}}
{{attachment:BPSK_BER.PNG}}
----
. CategoryCookbook...
- Cookbook/C_Extensions . . . 1 match
- ...|newbie for writing numpy/scipy extensions]]
* [[http://thread.gmane.org/gmane.comp.python.numeric.general/5234/focus=5234|Array data and struct alignment]]
----
CategoryCookbook...
- Cookbook/BuildingArrays . . . 1 match
- ...urn a.repeat(y, axis=0).repeat(x, axis=1)
>>> enlarge(a, x=2, y=2)
array([[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]])
}}}
----
. CategoryCookbook...
- Cookbook/ArrayStruct_and_Pyrex . . . 1 match
- ...ct__}}} interface. (The shared memory stuff has only been tested on linux, but the rest should work anywhere.)
= See also =
* [[Cookbook/Pyrex_and_NumPy]]
----
CategoryCookbook...