Thank you for your answer!
I am trying to use helvetica and yes, text(r'$1+2+3={}$1+2+3') gives me
helvetica for the non math mode case.
But how do I get math mode to use the same font? I've tried to set
'mathtext.rm': 'sans-serif' in my params dict
and then run "rcParams.update(params)" but that d
> 2009/1/7 David Lees :
> I just installed the windows prebuilt packages for Python 2.5 for:
> numpy, scipy and finally matplotlib. I get the following import problem:
>
> >>> import pylab
> Traceback (most recent call last):
> File "", line 1, in
> File "C:\Python25\Lib\site-packages\pylab.py
I just installed the windows prebuilt packages for Python 2.5 for:
numpy, scipy and finally matplotlib. I get the following import problem:
>>> import pylab
Traceback (most recent call last):
File "", line 1, in
File "C:\Python25\Lib\site-packages\pylab.py", line 1, in
from matplotlib.
Hi
Click on the link below and please enter your birthday for me. I am creating a
birthday list of all my friends and family.
http://www.birthdayalarm.com/bd2/84023778a187800123b1445150339c245145681d1386
Many Thanks,
Jibo
--
Hi,
the code given works for me in principle. If I run ipython without the
-pylab flag and do an
import * from pylab
at the start instead, I can run this code and it runs fine. (If not,
the plot() will imply the show and everything after that doesn't matter
any more.)
However, I'm now running in
Hi everybody,
I have a set of x,y values and draw these points connected by a line. Is it
possible to change the color of the points/line segments according to
another parameter which is given for every point?
Thank you for your help,
Cheers,
Marcus
--
View this message in context:
http://www.
On 1/6/2009 1:27 PM John Hunter apparently wrote:
> http://matplotlib.sourceforge.net/users/artists.html
Great stuff.
Note that the final figure is truncated on the right.
Alan Isaac
--
Check out the new SourceForge.ne
On Tue, Jan 6, 2009 at 11:59 AM, Mauro Cavalcanti wrote
> I fully agree. Matplotlib examples, available tutorials, and official
> documentation seems too much directed towards presenting it as an
I don't think this is really true anymore -- practically every example
I've written and posted in the
I can't reproduce the error and I guess it is back end specific.
Anyhow, the fontproperties object were created incorrectly and this
may be cause of the problem. I just thought your original dictionary
was in a correct form.
So, test your code w/o fontproperties and see if your text is placed
in a
I'm not aware of anyone having done this.
It may require a small bit of C/C# extension code to transfer the image
to the WPF window buffer (assuming you're not running IronPython and can
access the necessary APIs directly from Python). You can look at the
_tkagg.cpp extension for an example o
I have (what I thought was ) a simple question:
How do I display a matplotlib plot on WPF (running a C# application)? I want to
be able to do some animation eventually, so exporting to png etc. is not an
option.
I did a lot of googling but got nowhere. Any help is greatly appreciated.
___
Dear ALL,
2009/1/6 Christopher Barker :
> A FAQ is a good idea, but the real problem is that most of the docs,
> examples and code on this list has been matlab-style. People are going
> to follow examples far more than any amount of documentation.
I fully agree. Matplotlib examples, available tut
Christopher Barker wrote:
> A FAQ is a good idea, but the real problem is that most of the docs,
> examples and code on this list has been matlab-style. People are going
> to follow examples far more than any amount of documentation.
I agree. I tend to learn by example with less resistance.
Jae-Joon - Thank you for your suggestion. I wasn't aware I needed the
alignments.
However, when I try your sample code in my script, I get a sequence of
rendering errors if I use show() or savefig():
Traceback (most recent call last):
File
"/Library/Python/2.5/site-packages/matplotlib-0.98.
John Hunter wrote:
>> I think many people will want to move from command-line stuff to
>> embedding in the end.
> Hmm, if people are trying to do this, it does does point to an absence
> of adequate documentation because for years we've been saying on the
> lists that for years that you should not
I guess you're missing vertical and horizontal alignment.
Also, your font properties were not set correctly. The 4th argument of
the text function is a color.
fontdict2 = {'fontweight':'light',
'color': 'r',
'fontsize':fontsize}
fp = FontProperties(fontdict2)
labels = p
Is the list of return values from the clabel() function supposed to
represent the position and orientation of the contour labels? I have a
script below where I try to re-draw the contour labels using the Text
objects in the list returned from clabel(), and they do not line up in
my output. I'
On Tue, Jan 6, 2009 at 7:15 AM, Mauro Cavalcanti wrote:
> Dear ALL,
>
> I am under the impression that this is a very common question, but is
> there any way to toggle on/off a legend from a MPL plot?
Any artist can be "toggled" on and off by setting the visible property
leg = ax.legend(someth
On Tue, Jan 6, 2009 at 6:06 AM, Bryan Cole wrote:
> I think many people will want to move from command-line stuff to
> embedding in the end. I've been a number of users attempt to embed mpl
> figures using the pylab interface and it always ends in frustration...
Hmm, if people are trying to do t
Dear ALL,
I am under the impression that this is a very common question, but is
there any way to toggle on/off a legend from a MPL plot?
Thanks in advance!
Best regards,
--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: mauro...@g
>but you should be able to adapt the example below to your needs. This
example shows how to fit a
> gaussian to some noisy data.
This sure helps, thanks.
> I don't know if scipy has a logarithmic regression predefined,
so my question still stands. I'm still interested in logarithmic regression.
I
Oz Nahum wrote:
> Hi,
> I can't find a way to do a logarithmic regression in matplotlib,
> This can be done relatively easily in spread sheets like gnumeric and
> excel.
> Has anyone got a clue how to do it ?
> Thanks, Oz.
>
Matplotlib handles the graphics. For numeric regressions and fitting yo
> I suggest that you focus on the OO interface, rather than the pylab
> interface from the beginning. This will ease the transition from command
> line use to embedding, help folks understand the structure of MPL, and
> is the "right" way to do it (IMHO) with an OO language anyway.
+1
I thin
23 matches
Mail list logo