This is an archival dump of old wiki content --- see scipy.org for current material

Results 1 - 25 of 31 results out of about 490 pages. (0.15 seconds)

Cookbook/Matplotlib/Show_colormaps . . . 2 matches
... 'RdYlBu','RdYlGn','afmhot','binary','copper', 'gist_ncar','gist_rainbow','own1','own2']) }}} ---- CategoryCookbookMatplotlib CategoryCookbookMatplotlib...

6.5k - rev: 14 (current) last modified: 2015-10-24 17:48:26

Cookbook/Matplotlib/VTK_Integration . . . 1 match
... on my system. I had to change the following line: fig.set_figsize_inches(w / dpi, h / dpi) into: fig.set_figsize_inches(1.0*w / dpi, 1.0*h / dpi) ---- CategoryCookbookMatplotlib...

4.0k - rev: 6 (current) last modified: 2015-10-24 17:48:23

Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script . . . 1 match
...copyfileobj(open("tempfile.png",'rb'), sys.stdout) }}} (Of course it is necessary to create and delete proper temp files to use this in production.) ---- CategoryCookbookMatplotlib...

1.7k - rev: 5 (current) last modified: 2015-10-24 17:48:26

Cookbook/Matplotlib/UsingTex . . . 1 match
..., explicitly noting any changes to your rc settings, along with what version of matplotlib you have installed, your os, and the --verbose-* output. ---- CategoryCookbookMatplotlib...

5.8k - rev: 23 (current) last modified: 2015-10-24 17:48:25

Cookbook/Matplotlib/TreeMap . . . 1 match
...om(),random.random()) tree= ((5,(3,5)), 4, (5,2,(2,3,(3,2,2)),(3,3)), (3,2) ) Treemap(tree, iter, size, random_color) pylab.show() }}} ---- CategoryCookbookMatplotlib...

2.4k - rev: 5 (current) last modified: 2015-10-24 17:48:27

Cookbook/Matplotlib/Transformations . . . 1 match
...9,0,4,5) ax.plot(x,y,'.') # add labels trans=offset(ax, 10, 5) for a,b in zip(x,y): ax.text(a, b, '(%d,%d)'%(a,b), transform=trans) show() }}} ---- CategoryCookbookMatplotlib...

4.5k - rev: 9 (current) last modified: 2015-10-24 17:48:24

Cookbook/Matplotlib/SigmoidalFunctions . . . 1 match
...eople want to plot, but along with numerix and python, provides the basic tools to enable you to build them yourself. {{attachment:sigmoids2.png}} ---- CategoryCookbookMatplotlib...

3.0k - rev: 5 (current) last modified: 2015-10-24 17:48:23

Cookbook/Matplotlib/Qt_with_IPython_and_Designer . . . 1 match
...n. {{attachment:ipython_interacted.png}} And, it is very easy to go back to Designer, add a button, re-run pyuic, and you've got another version. ---- CategoryCookbookMatplotlib...

3.8k - rev: 3 (current) last modified: 2015-10-24 17:48:26

Cookbook/Matplotlib/Plotting_values_with_masked_arrays . . . 1 match
..._test.png') }}} The resulting figure might illustrate the problem - note the different scales in all three subplots: {{attachment:masked_test.png}} ---- CategoryCookbookMatplotlib...

1.4k - rev: 3 (current) last modified: 2015-10-24 17:48:23

Cookbook/Matplotlib/Plotting_Images_with_Special_Values . . . 1 match
...d then plotting the sentinels in specific colors. A sample result is shown below. {{attachment:sentinel_pristine.png}} {{attachment:sentinel.png}} ---- CategoryCookbookMatplotlib...

7.0k - rev: 2 (current) last modified: 2015-10-24 17:48:23

Cookbook/Matplotlib/Multiple_Subplots_with_One_Axis_Label . . . 1 match
...t_position((yyl.get_position()[0],1)) # This says use the top of the bottom axis as the reference point. yyl.set_verticalalignment('center') ---- CategoryCookbookMatplotlib...

3.5k - rev: 8 (current) last modified: 2015-10-24 17:48:26

Cookbook/Matplotlib/MultilinePlots . . . 1 match
...'-', '_'): set_ygain(1) connect('key_press_event', keypress) ax.set_title('Use + / - to change y gain') show() }}} {{attachment:multiline.png}} ---- CategoryCookbookMatplotlib...

6.9k - rev: 3 (current) last modified: 2015-10-24 17:48:26

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...

2.8k - rev: 6 (current) last modified: 2015-10-24 17:48:23

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...

1.5k - rev: 4 (current) last modified: 2015-10-24 17:48:23

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...

4.0k - rev: 14 (current) last modified: 2015-10-24 17:48:24

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...

2.3k - rev: 2 (current) last modified: 2015-10-24 17:48:24

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...

1.7k - rev: 12 (current) last modified: 2015-10-24 17:48:24

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...

9.4k - rev: 19 (current) last modified: 2015-10-24 17:48:23

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...

5.1k - rev: 6 (current) last modified: 2015-10-24 17:48:24

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...

9.4k - rev: 27 (current) last modified: 2015-10-24 17:48:26

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...

3.1k - rev: 3 (current) last modified: 2015-10-24 17:48:23

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...

1.5k - rev: 8 (current) last modified: 2015-10-24 17:48:25

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...

0.9k - rev: 2 (current) last modified: 2015-10-24 17:48:24

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...

2.5k - rev: 6 (current) last modified: 2015-10-24 17:48:23

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...

0.6k - rev: 2 (current) last modified: 2015-10-24 17:48:26

1 2 Next