Hello,
Unfortunately, the mplot3D page on the SciPy cookbook is not up to date.
The 3D code in mplot3d has been moved to a toolkit and needs to be
imported as is seen in the examples found here:
http://matplotlib.sourceforge.net/examples/mplot3d/index.html
> So: Any idea how to create a simple
Hello,
This is usually done by using several calls to "axes", specifying the
coordinates of the different plots in the figure.
The "plot" coordinates are in the range 0..1 times 0..1.
An example is provided here
http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.html
with two p
change line 29 to:
left, bottom, width, height = 0.1, 0.07, 1., 0.84 # values in 0-1
relative figure coordinates -- allow space on left for colorbar
it works on my machine (python 2.5 and mpl 0.99, mac os X 10.4).
Pierre
Le 11 mars 10 à 23:36, Jim Vickroy a écrit :
> Hello,
>
> The attached sc
add
"""
import numpy
"""
at the beginning of your code. Then,
y1=[Decimal('0.3041997084285048793446312110'), Decimal
('0.3041811120982812429734672735'), Decimal
('0.3041586008929715390350375366'), Decimal
('0.08256793883349254633032840545'), Decimal
('0.08255838341506859117962741714')]
(just
Hello,
It is not clear what exactly does not work in your file. I assumed it
was the logarithmic scaling in x. Here is the code to produce that.
A complete documentation is available on http://
matplotlib.sourceforge.net/ , you might be especially interested by
the examples http://matplotlib.
Hello,
What I do is to set it _before_ plotting through the rcParams.
rcParams['xtick.labelsize']=24
There is also the possiblity to change that property afterwards with
an argument to xticks.
xticks(fontsize=24)
Pierre
Le 21 janv. 10 à 22:36, Brian Larsen a écrit :
> How does one set the
I believe that MPL produces vector files.
If you want to check by yourself I suggest that you zoom "at will" on
an eps file. If you cannot observe rasterization artifacts it should
be right.
There is a "rasterized" option that will affect part of a plot but
will leave the text and axes vect
For eps files, I use epstool:
epstool --copy -b file.eps file_cropped.eps
It does not leave any whitespace, which is sometimes annoying.
Pierre
Le 14 janv. 10 à 17:52, Damon McDougall a écrit :
> Hi Ronald,
>
> I use:
>
> fig.savefig('graph.eps', bbox_inches='tight', pad_inches=0.03)
>
> Play w
Hello,
Numpy is capable of simple fitting of polynomials, see for a
definition and an example:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html
Alternatively, there is an entry in the SciPy Cookbook: http://
www.scipy.org/Cookbook/FittingData
Regards,
Pierre
Le 30 déc.
Hello,
According to http://matplotlib.sourceforge.net/api/
pyplot_api.html#matplotlib.pyplot.scatter , the keyword argument that
takes an array to specify the colors of the individual markers is c.
color is interpreted as a color to give to all markers at once.
The following works on my comp
Hello,
The Axes3D constructor accepts the keywords "azim" and "elev" to set
the viewpoint of the figure.
As for the title, I could not find information in the examples or the
api, so I suggest to add text with the text method. This solution
lacks an automatic placement for the title, howeve
ere some graph function that will treat the
> input as already binned? For example, if I have [10, 7, 5], I want
> to see a histogram of three bars, one at x =0 of height 10, one at
> x=1 of height 6, and 2 of height 5. x might be some other numbers
> like 18.2, 46.3 and 60.1.
&
Hello,
the np.random.randn() functions returns a list (or an array if given
appropriate arguments) of normal distributed numbers.
If x and y are also of length 100, each couple (x[i],y[i]) will be
assigned a size size[i] and a color colours[i].
This happens not at all because of magic, but b
From memory, you just need to make a length one list
contour(z, [i])
Pierre
Le 2 nov. 09 à 22:19, Brendan Arnold a écrit :
> Hi there,
>
> I can draw a single contour line in MATLAB using
>
> contour(z, [i i])
>
> however,
>
> contour(z, [i, i])
>
> using matplotlib gives an error. In fact any
Hello,
> There are multiple versions still existing on my computer. How can I
> clean up and install the latest version? Thank you all so much
You need to check the different paths accessed by Python.
>>> import sys
>>> print sys.path
and remove the possible matplotib files in these paths. Ty
Hello,
First, make sure that you have installed the Apple Developer Tools,
and the "BSD components" from the DVDs OS X.
Then, please indicate your version of python, and of numpy, and give
the installation log.
Pierre
Le 13 oct. 09 à 19:14, William Carithers a écrit :
> I've not been able
16 matches
Mail list logo