Indeed, a little bit less simple, but the solution nonetheless.
Thank you!
2012/3/26 Zachary Pincus
> > I'd like to display a scatter plot where the size for each element is
> fixed. Currently, when I modify the size of the figure, the size of a
> marker is fixed, and I would like it to be prop
hi,
I'd like to display a scatter plot where the size for each element is
fixed. Currently, when I modify the size of the figure, the size of a
marker is fixed, and I would like it to be proportional to the window.
I want this because the size of the marker indicates an extent, and I would
like it
ete the font cache
> file in
>
> ~/.matplotlib/fontList.cache
>
> Mike
>
> On 10/04/2010 08:44 AM, Matthieu Brucher wrote:
>> Hello,
>>
>> I ahve several installation of matplotlib on several computers with
>> different OS but the same HOME directory.
>>
Hello,
I ahve several installation of matplotlib on several computers with
different OS but the same HOME directory.
Matplotlib caches a lot of stuff in ~/.matplotlib, like fonts, but
they are not located in the same folder in different computers I use.
The issue is that the cache makes matplotlib
Hi,
In scikits.learn, there is a confusion matrix and in the samples,
there are several plots (scikit-learn.sf.net).
Matthieu
2010/7/16 Simon Friedberger :
> Hello List.
>
> I'm trying to plot a confusion matrix and I got this far:
> http://paste.pocoo.org/show/238332/
>
> Basically what I still
Hi,
You may just divide them by 1000?
Matthieu
2010/7/26 Waléria Antunes David :
> Hello all,
>
> I need to format the values of graphic to KHz.my values are in Hz
> see at idle python it displays the values as: 3000 3050 3100 3400 , but
> I need to go where it will be displayed KHz: 3
Indeed, with a fixed value, I could bypass this, but the main issue is
that the documentation says that it should work (xx-small, x-small,
small, medium, large, ... although I don't know if it should be
larger, as indicated in rc() doc, or large as indicated in the font
size doc IIRC).
Matthieu
2
Hi,
I've tried to set the size of the main font by doing:
import matplotlib.pyplot as pyplot
font = {'size' : 'larger'}
pyplot.rc('font', **font)
as indicated in
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.rc
It failed with:
raise ValueError('Could not convert
Hi again,
I've fixed the issue on my box. The issue lies in the definition of
the hash_map. For ICC for Linux, the GCC headers should be used.
Matthieu
2010/1/29 Matthieu Brucher :
> Hi,
>
> It seems that the compilation of base_format needs a C++ compiler, but
> distutils lau
Hi,
It seems that the compilation of base_format needs a C++ compiler, but
distutils launches icc instead of icpc. This may work with gcc, but
with Intel Compiler, I can't force icc to understand C++.
I don't know what happened between 0.98.5 and 0.99.2, but I can't use
Matplotlib anymore :|
Matt
Hi,
Just compile numpy on a system that doesn't have lapack3 installed.
Matthieu
2009/5/4 Nathaniel Echols :
> I need to distribute matplotlib as part of a large and somewhat
> heterogeneous package of Python-based software. On Macs, lapack is
> installed by default, and I can rely on the linki
What is surprising is that this is the library Python uses, so it must
be located at c:\pythonXXX. This path should be in the PATH variable.
So the system finds the library, but not python ??
Matthieu
2008/8/10 Adam Getchell <[EMAIL PROTECTED]>:
> Just installed matplotlib, it doesn't plot the b
lowing
> work-around:
>
> scatter(x, x**2.4, marker='s', color='r', s=25, label="_")
> # with no label
>
> plot([0], [0], ls='', marker='s', color='r', ms=5, mew=0, label="my label")
> # plot somewhere outside
Hi,
I'd like to plot three scatter plots on the same figure, each with different
symbols. Associated to these scatter plots, I'd like to put a legend. For
the moment, the legend is based on one of the color of the associated
scatter plot, but it is not relevant. Indeed, the colors are not identica
>
> I'm trying to explore new options, and learn new skills. My favorite
> programming languages are C/C++ and Python. I use Python for small
> scripts and applications, and C/C++ for everything else. I've started a
> smallish/medium size open source app in python+pygtk+matplotlib+numpy
> (laserfoa
>
> You might try checking what the existing values are:
>
> >>> rcParams['axes.formatter.limits']
> [-7, 7]
>
> and try:
>
> rcParams['axes.formatter.limits']=[-4,4]
>
Sorry, I didn't check the current values :|
It works like a charm now, thanks for all the helpfull answers :)
Matthieu
--
Frenc
>
> You can either set your axes.formatter.limits rc setting to something like
> 4,
> or you can make your axes smaller in the figure, like
> axes([0.25,0.125,0.7,0.85])
>
Thanks for this. I tried the first one (I can't make the figure smaller ;)),
but I got this result :
File "images.py", line
>
>
> Anyway, it is almost surely a bounding box problem.
> > I think you can use eps2eps to get a new bounding box.
>
>
> Thanks, I'll try this :)
It doesn't change a thing :|
Besides, even if it worked, there should be a way of changing the global
scale (see the attached image for a example).
2008/2/29, Alan G Isaac <[EMAIL PROTECTED]>:
>
> On Fri, 29 Feb 2008, Matthieu Brucher apparently wrote:
> > Sorry to raise this issue again, but some has a clue ?
>
>
> Didn't see this earlier and you did not attach the picture
> this time,
Ooops...
b
Hi,
Sorry to raise this issue again, but some has a clue ?
Matthieu
2008/2/4, Matthieu Brucher <[EMAIL PROTECTED]>:
>
> Hi,
>
> I'm trying to change the y labels on the attached picture
> (cout_it_459_zoom.eps). I modified the labels explicitly, but they still are
>
2008/2/1, Matthieu Brucher <[EMAIL PROTECTED]>:
>
>
>4. Make sure your editor is correctly saving the file in that
> > specified encoding. This is perhaps the hardest step because editors
> > all handle it a little differently. Some editors have an option
> &
>4. Make sure your editor is correctly saving the file in that
> specified encoding. This is perhaps the hardest step because editors
> all handle it a little differently. Some editors have an option
> somewhere to set the encoding that files are saved in. Others may
> automatically understa
hieu
2008/2/1, Matthieu Brucher <[EMAIL PROTECTED]>:
>
> No problem with the png backend.
>
> I tried with Latex for the accent, but it didn't work :
> Traceback (most recent call last):
> File "", line 1, in
> File
> "/home/brucher/local//l
plot([1, 2, 3], [1, 2, 3])
pl.xlabel('éè')
pl.show()
and the ps file is corrupted :(
Matthieu
2008/2/1, Michael Droettboom <[EMAIL PROTECTED]>:
>
> Can you provide an example of your code? Often, it is a matter of
> configuring/using Python correctly to indicate accent
Hi,
I'm trying to export a MAtplotlib figure which has some axes labels, such as
'coût'.
The problème is that the generated eps is corrupted because of these
accents. Is there a way to generate an acceptable eps file ?
Matthieu
--
French PhD student
Website : http://matthieu-brucher.developpez.c
Hi,
You could use another package, like openopt and the generic optimizers that
give you what you want provided that you create at least the gradient of
the function (I didn't create a class that can numerically derive a fit
function).
For instance
http://projects.scipy.org/scipy/scikits/wiki/Opt
I have this problem with the embedding samples that use wxagg. Otherwise, I
have no problem.
Jeff > do you import something using wxagg ?
Matthieu
2007/11/12, Michael Droettboom <[EMAIL PROTECTED]>:
>
> Can you send the entire traceback you get with this error? I'm curious
> which module is req
Hi,
mpl does not build the wxagg bridge starting from wxPython 2.8, thanks to an
upgraded system. So you can use wx directly without (much ?) loss of speed.
Matthieu
2007/11/10, Jeff Peery <[EMAIL PROTECTED]>:
>
> Hello,
> I've been using wxpython 2.6 unicode version and I recently upgraded
>
Hi,
I'm trying to integrate a Figure Canvas with a ToolBar in an application
that uses a noteboo for displaying several graphs.
My problem is that using a NotebookPanel leads to the FigureCanvas taking
all the space in the panel, the toolbar is not usable (it isn't even
displayed with a light gray
>
> Can this be changed? Is there a better approach I should take in
> getting my students started using scipy and pylab together?
>
Teaching them what is a module and a namespace is a good think, why don't
telling them to do :
import pylab as pl
import numpy as npy
for instance so that they ha
Hi,
I just encountered something odd.
I have (with import numpy as n and import pylab as pl) :
>>> x = n.arange(0, 2*n.pi, n.pi/30)
>>> z = n.array([n.cos(x), n.sin(x)]).T
If I draw a boxplot on z :
>>> pl.boxplot(z)
the values z are modified.
Is this a feature or a bug ?
Matthieu
---
>
> Only if this subplots overlap -- in this case they do not. When a
> previous subplot is overlapped by a new subplot, the old one is
> erased.
>
That means too that having a plot on 2/3 of the screen is not possible, I
suppose ?
Matthieu
--
>
> Although I am not completely sure what you are asking, I think you are
> asking for:
>
> subplot(221)
> subplot(222)
> subplot(212)
>
> then the last subplot (bottom row) will span both columns.
>
> JDH
>
Thank you for the fast answer :)
That should be what I asked for. Won't the other subplo
Hi,
I want to know if it is possible to create a plot on several subplots. For
instance :
pl.subplot(2, 2, 1)
pl.plot(y1)
pl.sublot(2, 2, 2)
pl.plot(y2)
pl.subplot(2, 2, ???) # Create a plot on the last line
plot(y3)
Is it possible ?
Matthieu
Hi,
numpy.arange(0, 100, 3) perhaps ?
Matthieu
2007/9/4, Robert Dailey <[EMAIL PROTECTED]>:
>
> Hi,
>
> I come from using Matlab and I was just curious if it was possible to
> create an arange from a quick for loop of numbers? For example:
>
> 0:3:100 would generate:
> 0, 3, 6, 9, 12, , 96,
Hi,
I think you must type :
set(gca(), 'xticklabels', [])
Matthieu
2007/8/16, Johann Cohen-Tanugi <[EMAIL PROTECTED]>:
>
> hello,
> I must be doing something stupid I am trying to test the snippets of
> code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29,
> and I get :
> [E
2007/8/10, william ratcliff <[EMAIL PROTECTED]>:
>
> so it would be something like:
>
>
> c=numpy.array([[1,2,3],[0,0,4],[0,2,4]]), where the values in the array go
> from 0-255 and denote r,g,b values?
>
> Thanks!
I use floatting point values, don't know if integers work.
I thing that colormap c
Yes, Python is written in C, but it is responsible for providing the good
flags so that extensions are compatible with the interpreter (there is an
option is Python steup for the C++ compiler for instance).
The exemple you give is valid for GCC, but is not for other compilers that
will crash with
Hi,
Matplotlib uses the distutils facilities to build the extension code.
Unfortunately, it is not possible to add or remove compiler flags, distutils
uses the same flags as Python when it was built. So this should probably be
sent to the Python users ML.
Matthieu
2007/7/23, Xavier Gnata <[EMAI
I want to do some matrix operations, like a singular value decomposition
(svd) or to calculate random number from the multivariate_normal
distributions. These two functions exist in 'numeric', but I cannot use them
(they hang up or give some errors).
Maybe there is any package to download that is
Hi,
In fact, polt3D and plot3d are the same, IIRC.
the kwargs are exactly the same as plot or scatter, as those methods are
called inside plot3d ans scatter3d to make the plot.
You can use 'ro-', no sweat, it works like a charm - at least for me :) -
Matthieu
2007/4/12, belinda thom <[EMAIL PRO
uples, ...
Matthieu
P.S. : if I had more time, I would try to solve the problem, but at the
moment, I can't :(
2007/3/12, Eric Firing <[EMAIL PROTECTED]>:
Matthieu Brucher wrote:
> OK, I'm trying to the same but in 3D, and there, no documentaion.
> I tried to launch axes3d.py to see
Hi,
I tried it again, and now it works like charm with numpy arrays. I do not
understand why it did not work before, but it works now, it's all that
matters :)
But 3D is another problem...
Matthieu
2007/3/14, Eric Firing <[EMAIL PROTECTED]>:
Matthieu Brucher wrote:
> What
What version of mpl are you using?
The latest, I compiled it from the source as FC5 has a very old version -
can't update myself the distribution -
In recent versions, the collections should accept 2D numpy arrays as
well as any sequence of tuples (and several other possibilities).
For
There may be, but all 3D plotting is shaky right now. The 3D code is
essentially unmaintained and unsupported.
Eric
Sad to hear this, I hope someone will enhance it :)
Matthieu
-
Take Surveys. Earn Cash. Influence the
hieu
2007/3/12, Matthieu Brucher <[EMAIL PROTECTED]>:
I manage to do what I wanted to do, it was not that easy - the colours
were in an array I had to transform into an array of tuples, the autoscale
did not function, I had to put in the fig.subplot the correct xlim and
ylim -, but now it wor
Hunter <[EMAIL PROTECTED]>:
On 3/9/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote:
> What I have is a set of points in a numpy.array - for instance size
(2000,
> 2) -. What I have as well is a nump.array of size (2000, 3). How can I
make
> plot understand that each line of t
Thank you, I think thatthis will solve my problem :)
I didn't know this class existed.
Matthieu
2007/3/9, John Hunter <[EMAIL PROTECTED]>:
On 3/9/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote:
> What I have is a set of points in a numpy.array - for instance size
(2000,
Complete examples always help ince we have no way of knowing what the
points data structures look like, but I'll hazard a gues. The x and y
arguments to "plot" need to be sequences. Ie, something like
plot([0.5], [0.5], 'ro')
It can be inefficient to plot many separate points this way -- if
Hi,
I'm trying to plot a set of points, each point having a different color.
For the moment, I'm trying to do something like that :
for indice in range(0, points.shape[0]):
pl.plot(points[indice, 0], points[indice, 1], 'o', c =
colours[indice,:], hold = True)
where points is a numpy array o
50 matches
Mail list logo