[Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Matthieu Brucher
Indeed, a little bit less simple, but the solution nonetheless. Thank you! 2012/3/26 Zachary Pincus zachary.pin...@yale.edu 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

[Matplotlib-users] Worries with ~/.matplotlib and fonts

2010-10-04 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Confusion Matrix

2010-07-29 Thread Matthieu Brucher
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 simon+matplot...@a-oben.org: Hello List. I'm trying to plot a confusion matrix and I got this far: http://paste.pocoo.org/show/238332/

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Matthieu Brucher
Hi, You may just divide them by 1000? Matthieu 2010/7/26 Waléria Antunes David waleriantu...@gmail.com: 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

[Matplotlib-users] Issue with sample from website and rc()

2010-02-24 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Issue with sample from website and rc()

2010-02-24 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Error with 0.99.2 when using Intel Compiler (Linux)

2010-02-01 Thread Matthieu Brucher
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 matthieu.bruc...@gmail.com: Hi, It seems that the compilation of base_format needs a C++ compiler, but distutils

[Matplotlib-users] Error with 0.99.2 when using Intel Compiler (Linux)

2010-01-29 Thread Matthieu Brucher
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 :|

Re: [Matplotlib-users] numpy and lapack on linux

2009-05-04 Thread Matthieu Brucher
Hi, Just compile numpy on a system that doesn't have lapack3 installed. Matthieu 2009/5/4 Nathaniel Echols nathaniel.ech...@gmail.com: 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

Re: [Matplotlib-users] Legend for a scatter plot based on symbols

2008-06-04 Thread Matthieu Brucher
, 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 the shown axis with the preferred label legend() Best regards Matthias On Friday 30 May 2008 11:20:08 Matthieu Brucher wrote: Hi

[Matplotlib-users] Legend for a scatter plot based on symbols

2008-05-30 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Changing ticks format

2008-02-29 Thread Matthieu Brucher
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 outside the picture

Re: [Matplotlib-users] Changing ticks format

2008-02-29 Thread Matthieu Brucher
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... but I've seen cut-off labels in some settings when

Re: [Matplotlib-users] Changing ticks format

2008-02-29 Thread Matthieu Brucher
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).

Re: [Matplotlib-users] Changing ticks format

2008-02-29 Thread Matthieu Brucher
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 -- French PhD

Re: [Matplotlib-users] Changing ticks format

2008-02-29 Thread Matthieu Brucher
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 14, in

Re: [Matplotlib-users] Plotting in C++

2008-02-29 Thread Matthieu Brucher
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

[Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
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 :

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
/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 input, line 1, in module File /home/brucher/local//lib/python2.5/site-packages/matplotlib/pyplot.py, line 265

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
Droettboom [EMAIL PROTECTED]: Can you provide an example of your code? Often, it is a matter of configuring/using Python correctly to indicate accents. Is the problem only with EPS or other backends as well? Cheers, Mike Matthieu Brucher wrote: Hi, I'm trying to export a MAtplotlib

Re: [Matplotlib-users] power law fitting of data

2007-12-05 Thread Matthieu Brucher
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

Re: [Matplotlib-users] cannot find wxmsw26uh_vc.dll

2007-11-12 Thread Matthieu Brucher
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

Re: [Matplotlib-users] cannot find wxmsw26uh_vc.dll

2007-11-10 Thread Matthieu Brucher
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 to

[Matplotlib-users] Creating a Figure in a wx.Panel(or a NotebookPage more precisely)

2007-10-22 Thread Matthieu Brucher
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

[Matplotlib-users] Bug in boxplot ?

2007-10-05 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread Matthieu Brucher
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 subplots be

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread Matthieu Brucher
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

Re: [Matplotlib-users] [Newbie question] Is 0:3:100 possible?

2007-09-04 Thread Matthieu Brucher
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, 99 And

Re: [Matplotlib-users] problem with set in current svn HEAD

2007-08-16 Thread Matthieu Brucher
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 : [EMAIL

Re: [Matplotlib-users] 3D plotting?

2007-08-10 Thread Matthieu Brucher
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 could be

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Matthieu Brucher
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

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Matthieu Brucher
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

Re: [Matplotlib-users] numpy and matrix operations

2007-06-28 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-27 Thread Matthieu Brucher
, ... 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 exactly what I can do

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-19 Thread Matthieu Brucher
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 version of mpl

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-12 Thread Matthieu Brucher
, 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 works like a charm. Many

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-12 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-12 Thread Matthieu Brucher
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).

[Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread Matthieu Brucher
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

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread Matthieu Brucher
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, 2) -. What I have as well