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