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
Ping,
You should investigate scipy.optimize.lsqFit for using least squares
to fit an arbitrary function and scipy.odr for regular or orthogonal
least squares fitting.
barry
On Dec 5, 2007 9:45 PM, Ping Yeh <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have (x,y) data that I want to fit to the formula
>
Hi,
I have (x,y) data that I want to fit to the formula
y = a * x^b
to determine a and b. How can I do it? The current
manual only lists linear fit and polynomial fit.
Or, putting it in a more general setting, is there a
module to do fitting to an arbitrary function?
It would be something like
p
On Dec 5, 2007 10:30 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> Looks like you need setuptools
>
> http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install
Thanks John, installing setuptools did the trick.
Cheers
Adam
---
On Dec 5, 2007 9:13 PM, Adam Mercer <[EMAIL PROTECTED]> wrote:
> ImportError: No module named pkg_resources
>
> Am I missing a required module?
Looks like you need setuptools
http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install
Hi
After updating to basemap-0.9.8 I'm getting the following error when
trying to import the basemap module on Intel Mac OS X Leopard using
Python-2.5.1 from MacPorts
Python 2.5.1 (r251:54863, Nov 22 2007, 18:02:58)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits"
Hello,
On the Mac I use TkAgg and can output PDF files no problem. The only
reason I was using GTKCairo was to get the PDF output which was not
working with GTKAgg. I just updated to the most recent SVN from the
one I was using from earlier today and now I can save to PDF in GTKAgg
witho
Sorry for the wild goose chase. Now that my memory has been jogged --
This is actually a known problem with the Cairo backend. Cairo only
allows access to fonts installed in the normal OS-specific places (and
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf is
definitely not one
I'm on a Linux box (I'm assuming you're on Windows, since you mentioned
Process Explorer), and I wasn't able to find any file handle "leaks", as
such, but I did see that font files were being opened many more times
than they need to be.
If you're able to run from Subversion, r4633 has a fix for
I feel a 0.91.2 in the next few weeks, and I'll be sure to do this and
send you a test build.
- Charlie
On Dec 5, 2007 1:30 PM, Russell E Owen <[EMAIL PROTECTED]> wrote:
> At 10:03 AM -0800 2007-12-05, Christopher Barker wrote:
> >Russell E Owen wrote:
> >>At 10:08 AM -0500 2007-12-05, Stephen Uh
Hello,
Below is the requested output which looks correct to me:
[EMAIL PROTECTED]:~/dev/pyanalysis$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>
What's happening is that it isn't finding the Bakoma Computer Modern
fonts. These have a non-standard encoding, so the '-' for instance, is
actually under a different character code.
So... we need to track down why it's looking in the wrong place.
Can you send the output of:
> python
Python
On Dec 5, 2007 12:36 PM, Barry Wark <[EMAIL PROTECTED]> wrote:
> Chris,
>
> I appologize for cryptic language and quickly written emails leading
> you astray. I've included the diff of backend_cocoaagg.py (which has
> also been sent to the mpl devs) which seems to work for me.
I committed in r4571
Hello,
I am using matplotlib svn 4626 and Cairo 1.4.0 all with python 2.5
with Ubuntu linux 7.10. The only lines in my matplotlibrc file which
are uncommented are:
backend : GTKCairo
numerix : numpy # numpy, Numeric or numarray
interactive : True # see
http://matplotlib.sour
On Dec 5, 2007 12:53 PM, Jonathan King <[EMAIL PROTECTED]> wrote:
> i am having trouble installing matplotlib from source and thought i
> would post my issue here.
> i download matplotlib version 0.91.0
It looks possibly like a numpy problem (you have a pretty old version installed)
> /usr/lib/py
i am having trouble installing matplotlib from source and thought i
would post my issue here.
i download matplotlib version 0.91.0
i am using a version of scientific linux, so i can't use rpm packages
for some packages
# uname -a
Linux labcalx 2.6.23.8 #1 Fri Nov 23 10:54:41 EST 2007 i686 i686 i
hi,
I think the new 0.91.1 has some kind of file handle leak at least when
using python 2.4, tkagg, and within ipython. Using process explorer to
look at filehandles opened by python then I get about 25 new open
handles to vera.ttf per %run of the following script.
from pylab import *
figure(
Thanks for the background Barry.
I was asking because I have a bit of image processing/analysis code
(numpy/mpl/pil) that I would like to build a GUI front-end for. As I
am a recent convert to the osx world, I thought it would be very slick
to be able to do this with the xcode/IB tools. Since this
Barry Wark wrote:
> We (at my work) are just starting to think about writing a more direct
> Quartz backend for mpl. A native backend would let a matplotlib view
> participate in newer Cocoa technologies, such as resolution
> independence and CoreAnimation (it's possible with the current back
On Dec 5, 2007 11:55 AM, Barry Wark <[EMAIL PROTECTED]> wrote:
> Stephen,
>
> The CocoaAgg backend is not supported in IPython.
Though we'd love to support it, were a few patches to land our way :)
Cheers,
f
-
SF.Net email
Stephen,
The CocoaAgg backend is not supported in IPython. You can use it in
the non-interactive form (i.e. with a pylab.show() but you will have
to close the window in order to return control to the IPython shell).
It is possible to embed an MPL plot in a Cocoa application using the
same
Chris,
I appologize for cryptic language and quickly written emails leading
you astray. I've included the diff of backend_cocoaagg.py (which has
also been sent to the mpl devs) which seems to work for me.
Barry
backend_cocoaagg.py.diff
Description: Binary data
On Dec 3, 2007, at 8:00 PM
It works for me on Linux with matplotlib 0.91.1, and Cairo 1.4.0.
What version of matplotlib and Cairo are you using? It sounds like it
may be pulling in the wrong fonts. Can you please send the contents of
your matplotlibrc file, and also set "verbose.level" to "debug-annoying"
and send the
Hello all,
I am trying to get a setup where I can have an interactive environment
and output to PDF files as needed. I currently have this setup
working in OS X 10.5 without problems. However, I cannot get a
similar setup working on linux. The best I have been able to do is by
using GTK
At 10:03 AM -0800 2007-12-05, Christopher Barker wrote:
>Russell E Owen wrote:
>>At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote:
>>>Just for my edification, why can't the egg version be linked
>>>against/include a different Tcl/Tk?
>>
>>If you mean why can't it be built that way in the first p
Russell E Owen wrote:
> At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote:
>> Just for my edification, why can't the egg version be linked
>> against/include a different Tcl/Tk?
>
> If you mean why can't it be built that way in the first place, I
> don't know. The guy who builds it apparently d
I primarily follow the dev list, but you've caught my eye. ;)
So to be clear, you would just like me to install some other tcl/tk
before I do the "official" matplotlib osx binaries. What package
should I be installing and where should I get it from. As long as it
still works with the bundled tck
John Hunter wrote:
> You cannot import pylab and use the FigureCanvasWx at the same time.
> Please follow the lead of examples/embedding_in_wx*.py if you want to
> use matplotlib in a wxpython GUI.
or use wxmpl:
http://agni.phys.iit.edu/~kmcivor/wxmpl/
By the way, couldn't that be distributed wi
I feel we're getting a tad bit off topic from my original inquiry. Does
anyone have an answer for me? Thanks.
On Dec 5, 2007 8:42 AM, massimo sandal <[EMAIL PROTECTED]> wrote:
> rex ha scritto:
> > massimo sandal <[EMAIL PROTECTED]> [2007-12-04 09:18]:
> >> On a related note, I *hate* that hittin
At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote:
>On Dec 4, 2007 5:14 PM, Russell E. Owen <[EMAIL PROTECTED]> wrote:
>
>> If you use Tcl/Tk and use a current version (instead of the ancient
>> version that is built in) then use the packages at pythonmac. I just
>> built 0.91.1 today and it s
Michael Hearne wrote:
> Does anyone here have any experience converting GMT color palettes
> into pylab colormaps? I took a stab at it, and the results are not
> really what I expected.
>
> GMT, for the unfamiliar, is a scientific plotting/mapping package that
> I'm doing my best to rid myself
Does anyone here have any experience converting GMT color palettes
into pylab colormaps? I took a stab at it, and the results are not
really what I expected.
GMT, for the unfamiliar, is a scientific plotting/mapping package
that I'm doing my best to rid myself of. If you've never heard of
On Dec 5, 2007 8:37 AM, Stephen Uhlhorn <[EMAIL PROTECTED]> wrote:
> I was just wondering what the status of the CocoaAgg backend is since
> there is not much info available.
>
> Can it be used interactively w/ipython?
I don't know for a fact, but the answer is probalby no. Each GUI
backend requi
I was just wondering what the status of the CocoaAgg backend is since
there is not much info available.
Can it be used interactively w/ipython?
Can it be used to embed mpl in a cocoa app and take advantage of all
the xcode/interface builder stuff in OS X?
Thanks-
-stephen
--
On Dec 5, 2007 6:38 AM, Søren Nielsen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible to expand the colorcycle that matplotlib uses by default?
>
> in axes.py, class _process_plot_var_args, def _clear_color_cycle(self) It
> seems that self.colors are hardcoded to be self.colors =
> ['b','g','r'
On Dec 5, 2007 8:58 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote:
> Mmmm... I was just wondering whether compiling the new 0.91.1 version might
> make the problem go away? I am currently running 0.90.1.
Unlikely, we haven't changed anything in that code. One thing you can
do, it is fairly labor
On Dec 4, 2007 5:14 PM, Russell E. Owen <[EMAIL PROTECTED]> wrote:
> If you use Tcl/Tk and use a current version (instead of the ancient
> version that is built in) then use the packages at pythonmac. I just
> built 0.91.1 today and it should show up there soon. Meanwhile you can
> get it from her
On Tuesday 04 December 2007 16:16:06 José Gómez-Dans wrote:
> On Tuesday 04 December 2007 16:05:33 John Hunter wrote:
> > On Dec 4, 2007 10:00 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote:
> > Hmm, the plot thickens. How about embedding_in_gtk2.py -- this add the
> > toolbar
>
> This does indeed
On Sunday 02 December 2007 06:55:01 am hjc520070 wrote:
> Xavier Gnata wrote:
> > Hi,
> >
> > Quoting matplotlib/__init__.py :
> >
> > def checkdep_ghostscript():
> > try:
> > if sys.platform == 'win32':
> > command = 'gswin32c -v'
> > else:
> > command
On Dec 1, 2007 7:07 PM, twentypoundtrout <[EMAIL PROTECTED]> wrote:
>
> Hi. I installed matplotlib and get the following when I import pylab:
There was a bug in our windows installer that should be fixed now.
Please remove the matplotlib installation and reinstall with the
downloads now available
On Dec 2, 2007 1:04 AM, Brian Orr <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm running into the following error when I try to run any of the matplotlib
> examples:
>
> $ python anim.py
> Traceback (most recent call last):
> File "anim.py", line 19, in
> import pylab as p
> File "C:\Python2
On Dec 1, 2007 7:47 PM, hjc520070 <[EMAIL PROTECTED]> wrote:
>
> The following run well . But I just want to make the image, with the x and y
> as axis and z as the image value ,show on the figure. In the pylab , we can
> just give a command "imshow" ,But here , I fail to do it , I have try
> ax.im
Hi,
Is it possible to expand the colorcycle that matplotlib uses by default?
in axes.py, class _process_plot_var_args, def _clear_color_cycle(self) It
seems that self.colors are hardcoded to be self.colors =
['b','g','r','c','m','y','k'] ... is there a way to extend this? (Without
changing the ma
I have the CocoaAgg backend specified in matplotlibrc in ~/.matplotlib/ as:
backend : CocoaAgg
However, when I plot, matplotlib uses the TkAgg backend in spite of this.
--
Christopher J. Fonnesbeck
+ Fish & Wildlife Research Institute (FWC)
+ 727.235.5570
-
Xavier Gnata wrote:
>
> Hi,
>
> Quoting matplotlib/__init__.py :
>
> def checkdep_ghostscript():
> try:
> if sys.platform == 'win32':
> command = 'gswin32c -v'
> else:
> command = 'gs -v'
> stdin, stdout = os.popen4(command)
> line
Hi All,
I'm running into the following error when I try to run any of the matplotlib
examples:
$ python anim.py
Traceback (most recent call last):
File "anim.py", line 19, in
import pylab as p
File "C:\Python25\Lib\site-packages\pylab.py", line 1, in
from matplotlib.pylab import *
The following run well . But I just want to make the image, with the x and y
as axis and z as the image value ,show on the figure. In the pylab , we can
just give a command "imshow" ,But here , I fail to do it , I have try
ax.imshow() again and again ,but fail. Can sb give me some advice . Thank
y
Hi. I installed matplotlib and get the following when I import pylab:
In [8]: import pylab
---
ImportError Traceback (most recent call last)
C:\Documents and Settings\luke\Desktop\ in ()
C:\Py
rex ha scritto:
massimo sandal <[EMAIL PROTECTED]> [2007-12-04 09:18]:
On a related note, I *hate* that hitting "reply" uses the mail address
of the parent poster, instead than that of the mailing list. The scipy
and the gentoo mailing list (two other examples I know) behave more
properly. Is
rex wrote:
> massimo sandal <[EMAIL PROTECTED]> [2007-12-04 09:18]:
>> On a related note, I *hate* that hitting "reply" uses the mail address
>> of the parent poster, instead than that of the mailing list. The scipy
>> and the gentoo mailing list (two other examples I know) behave more
>> prop
50 matches
Mail list logo