Lotfi Benz | 1 Sep 11:37

Agent Problem

I am using matplotlib since three months, every thing was fine untill today I have got this error message which is strange and I could not figure out what it means.
here I paste the error message I got.
"""
Another agent is running...
Failed to allocate the agent. Exitting...
Failed to invoking the agent: No such file or directory
Cannot launch the agent
The messenger is now down

"""
Does somebody knows where it comes from and how to cure it?
Thanks in advance
Lotfi
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
John Hunter | 1 Sep 15:29
Picon
Gravatar

Re: Agent Problem

On Mon, Sep 1, 2008 at 4:37 AM, Lotfi Benz <lbenz52@...> wrote:
> I am using matplotlib since three months, every thing was fine untill today
> I have got this error message which is strange and I could not figure out
> what it means.
> here I paste the error message I got.
> """
> Another agent is running...
> Failed to allocate the agent. Exitting...
> Failed to invoking the agent: No such file or directory
> Cannot launch the agent
> The messenger is now down

This looks like a KDE/Qt problem, not a matplotlib problem, eg
googling for the phrase,

   Failed to invoking the agent: No such file or directory

turns up hits like this:

   https://bugs.launchpad.net/ubuntu/+source/scim-bridge/+bug/203334

JDH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Picon

axis and zoom

Hi Guys,

I have some questions:

1. How can I zoom in the horizontal axis and maintain the vertical axis 
unchanged with the zoom tool provided by matplotlib?

2. How can I change the xticks so that they do not overlap each other? 
For instance, I have a plot in time, but since it's a huge simulation 
the time ticks 2000 3000 are overlapping, so that I cannot understand. 
Is it possible to change the units? Like 2 3 and then add 10^3 somewhere 
else? I hope you can understand my question...sorry if it's not clear.

Bernardo M. Rocha

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
John Hunter | 2 Sep 21:25
Picon
Gravatar

Re: axis and zoom

On Tue, Sep 2, 2008 at 5:04 AM, bernardo martins rocha
<bernardo.rocha@...> wrote:
> Hi Guys,
>
> I have some questions:
>
> 1. How can I zoom in the horizontal axis and maintain the vertical axis
> unchanged with the zoom tool provided by matplotlib?

Hold down the 'x' key while zooming to constrain the zoom to the
x-axis -- ditto for 'y'.  This is covered at
http://matplotlib.sourceforge.net/doc/html/users/navigation_toolbar.html

> 2. How can I change the xticks so that they do not overlap each other?
> For instance, I have a plot in time, but since it's a huge simulation
> the time ticks 2000 3000 are overlapping, so that I cannot understand.
> Is it possible to change the units? Like 2 3 and then add 10^3 somewhere
> else? I hope you can understand my question...sorry if it's not clear.

You can set fewer ticks either by using your own date locator instance
(see the user's guide' chapter on tick locating and formatting) or by
setting the tick locations explicitly (eg, ax.set_xticks).

Another thing that can help is to rotate the tick labels -- with date
plots there is a helper function

  fig.autofmt_xdate()

which does this automatically.  The basic code is

for label in ax.get_xticklabels():
    label.set_horizontalalignment('right')
    label.set_rotation(30)

JDH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Paul Novak | 2 Sep 22:13
Favicon

Compound paths

Are there any more examples of matplotlib's new path functionality, in 
addition to the one in examples/api/path_patch_demo.py? Specifically, I 
would like an example of using compound paths to draw a donut-shape that 
shows the inner and outer edge and fills the donut with a color.

Thank you,
Paul

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Xavier Gnata | 3 Sep 00:51
Picon
Gravatar

pickup pixels values

Hi,

What is the best way to get the pixels values in addition to the pixel 
numbers when moving the mouse on on imhow display?
It could be either on the fly (would be great) or on click.

"best way" here means that the code can be quite complex but that it 
should be as simple as imshow from the end user point of view.

I'm using TkAgg.

Xavier

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Fredrik Johansson | 3 Sep 00:56
Picon

Buggy 2D plot with ylim and large y values

Hi,

I've encountered what appears to be a bug in matplotlib-0.98.3
(Windows XP, Python 2.5). The following plot of a function with poles
displays garbage (large filled boxes instead of a curve). There's
large variation in the y values, but not so large that this shouldn't
be possible to plot correctly.

Is this problem known? Is there a workaround?

from pylab import *
x = [-2.97, -2.94, -2.91, -2.88, -2.85, -2.82, -2.79, -2.76, -2.73, -2.7,
-2.67, -2.64, -2.61, -2.58, -2.55, -2.52, -2.49, -2.46, -2.43, -2.4, -2.37,
-2.34, -2.31, -2.28, -2.25, -2.22, -2.19, -2.16, -2.13, -2.1, -2.07, -2.04,
-2.01, -1.98, -1.95, -1.92, -1.89, -1.86, -1.83, -1.8, -1.77, -1.74, -1.71,
-1.68, -1.65, -1.62, -1.59, -1.56, -1.53, -1.5, -1.47, -1.44, -1.41, -1.38,
-1.35, -1.32, -1.29,-1.26, -1.23, -1.2, -1.17, -1.14, -1.11, -1.08, -1.05,
-1.02, -0.99, -0.96, -0.93, -0.9, -0.87, -0.84, -0.81, -0.78, -0.75, -0.72,
-0.69, -0.66, -0.63, -0.6, -0.57, -0.54, -0.51, -0.48, -0.45, -0.42, -0.39,
-0.36, -0.33, -0.3, -0.27, -0.24, -0.21, -0.18, -0.15, -0.12, -0.09, -0.06,
-0.03]
y = [7.40742e+6, 462976.0, 91463.4, 28950.0, 11867.8, 5732.96, 3104.37,
1830.03, 1153.53, 768.963, 538.805, 395.968, 305.58, 248.666, 214.668,
197.843, 195.517, 207.33, 235.138, 283.525, 361.162, 483.641, 679.315,
1001.79, 1558.46, 2581.22, 4621.92, 9171.58, 21022.7, 60014.1, 249909.0,
2.34376e+6, 6.0e+8, 3.75e+7, 960013.0, 146498.0, 40995.2, 15633.9,7200.57,
3768.46, 2164.71, 1336.34, 875.104, 603.287, 436.34, 331.148, 264.559,
223.743, 201.613, 194.594, 201.594, 223.706, 264.503, 331.072, 436.244,
603.172, 874.968, 1336.19, 2164.53, 3768.26, 7200.35, 15633.7, 40994.9,
146498.0, 960013.0, 3.75e+7, 6.0e+8, 2.34376e+6, 249909.0, 60013.7,
21022.2, 9171.01, 4621.3, 2580.56, 1557.75, 1001.03, 678.491, 482.753,
360.205, 282.492, 234.022, 206.125, 194.213, 196.431, 213.137, 247.004,
303.774, 394.002, 536.66, 766.62, 1150.97, 1827.22, 3101.28, 5729.56,
11864.0, 28945.8, 91458.8, 462971.0, 7.40741e+6]
plot(x, y)
ylim([-40, 40])
show()

--
Fredrik

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Tony S Yu | 3 Sep 06:37
Picon
Favicon

Re: Buggy 2D plot with ylim and large y values


On Sep 2, 2008, at 6:56 PM, Fredrik Johansson wrote:

> Hi,
>
> I've encountered what appears to be a bug in matplotlib-0.98.3
> (Windows XP, Python 2.5). The following plot of a function with poles
> displays garbage (large filled boxes instead of a curve). There's
> large variation in the y values, but not so large that this shouldn't
> be possible to plot correctly.
>
> Is this problem known? Is there a workaround?
>
> from pylab import *
> x = [-2.97, -2.94, -2.91, -2.88, -2.85, -2.82, -2.79, -2.76, -2.73,  
> -2.7,
> -2.67, -2.64, -2.61, -2.58, -2.55, -2.52, -2.49, -2.46, -2.43, -2.4,  
> -2.37,
> -2.34, -2.31, -2.28, -2.25, -2.22, -2.19, -2.16, -2.13, -2.1, -2.07,  
> -2.04,
> -2.01, -1.98, -1.95, -1.92, -1.89, -1.86, -1.83, -1.8, -1.77, -1.74,  
> -1.71,
> -1.68, -1.65, -1.62, -1.59, -1.56, -1.53, -1.5, -1.47, -1.44, -1.41,  
> -1.38,
> -1.35, -1.32, -1.29,-1.26, -1.23, -1.2, -1.17, -1.14, -1.11, -1.08,  
> -1.05,
> -1.02, -0.99, -0.96, -0.93, -0.9, -0.87, -0.84, -0.81, -0.78, -0.75,  
> -0.72,
> -0.69, -0.66, -0.63, -0.6, -0.57, -0.54, -0.51, -0.48, -0.45, -0.42,  
> -0.39,
> -0.36, -0.33, -0.3, -0.27, -0.24, -0.21, -0.18, -0.15, -0.12, -0.09,  
> -0.06,
> -0.03]
> y = [7.40742e+6, 462976.0, 91463.4, 28950.0, 11867.8, 5732.96,  
> 3104.37,
> 1830.03, 1153.53, 768.963, 538.805, 395.968, 305.58, 248.666, 214.668,
> 197.843, 195.517, 207.33, 235.138, 283.525, 361.162, 483.641, 679.315,
> 1001.79, 1558.46, 2581.22, 4621.92, 9171.58, 21022.7, 60014.1,  
> 249909.0,
> 2.34376e+6, 6.0e+8, 3.75e+7, 960013.0, 146498.0, 40995.2,  
> 15633.9,7200.57,
> 3768.46, 2164.71, 1336.34, 875.104, 603.287, 436.34, 331.148, 264.559,
> 223.743, 201.613, 194.594, 201.594, 223.706, 264.503, 331.072,  
> 436.244,
> 603.172, 874.968, 1336.19, 2164.53, 3768.26, 7200.35, 15633.7,  
> 40994.9,
> 146498.0, 960013.0, 3.75e+7, 6.0e+8, 2.34376e+6, 249909.0, 60013.7,
> 21022.2, 9171.01, 4621.3, 2580.56, 1557.75, 1001.03, 678.491, 482.753,
> 360.205, 282.492, 234.022, 206.125, 194.213, 196.431, 213.137,  
> 247.004,
> 303.774, 394.002, 536.66, 766.62, 1150.97, 1827.22, 3101.28, 5729.56,
> 11864.0, 28945.8, 91458.8, 462971.0, 7.40741e+6]
> plot(x, y)
> ylim([-40, 40])
> show()

I may be missing something here, but everything plots fine *if you  
remove the call to ylim*. Note that the minimum y value is 194.213. I  
wouldn't expect to see anything if none of the data is between y =  
-40 .. 40. Sorry if I'm overlooking something.

Best,
-Tony

> --
> Fredrik
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Zainal Abidin | 3 Sep 07:30
Picon

Figure Dimension

Hi All matplotlib users,
I want to ask a question about figure dimension (pixels), how to set the figure's dimension that we will create using matlotlib.pyplot.savefig() ?
Thank You ..

--
Zainal Abidin, S.Si

Sub Bidang Informasi Meteorologi Publik
Badan Meteorologi dan Geofisika
Jl. Angkasa I No. 2
Jakarta - Indonesia
Visit Indonesia Year 2008 - Celebrating 100 Years of National Awakening
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
dmitrey | 3 Sep 09:19
Favicon

plot star instead of pentagram

hi all,
matplotlib says it's similar to MATLAB's plot tool, however, using 
plot(..., 'p') plots pentagram instead of star. It makes my (Python 
scikits.openopt) graphic output of numerical convergence look uglier 
than MATLAB version.

So is plotting a star intended to be ever implemented?
Thank you in advance, Dmitrey

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane