fiing a
bug report!
wxPython includes a wxversion module that lets one select whihc version
of wxPython you want run, if more than one is installed. It might be
nice if those calls could get put into MPL somewhere, so that when MPL
is built against a given version, that version will be run
t as well learn the whole pile at once.
That all being said, it would be nice to establish a standard convention
for how to import the key packages. I use:
import numpy as N
import matplotlib as MPL
But I don't really care that much, if we can come to any kind of
community consensus, I'
I have a strange problem with my builds of matplotlib on OS X 10.4: If I
install them from the command line, with setup.py, they install fine and
matplotlib can be imported with no problem. However, I need to build
distributable OS X packages, which I do using bdist_mpkg; when this package
is inst
, FL
Adjunct Assistant Professor
Warnell School of Forestry and Natural Resources
University of Georgia
Athens, GA
T: 727.235.5570
E: Chris dot Fonnesbeck at MyFWC dot com
-
This SF.net email is sponsored by DB2 Express
Download
I get a repeatable bus error when trying to plot more than
one histogram of simulated data. The first plot is generated
without error, but invariably a second plot crashes:
In [4]: x = random.negative_binomial(2, 0.25, 1000)
In [5]: from pylab import *
In [6]: hist(x)
Out[6]:
(array([240, 318,
For some reason, builds from SVN dont install either pytz
or dateutil (at least not in the right place). Importing pylab
from these builds results in an import error.
How can I build these so as to convince these modules to
install correctly?
Thanks.
---
vent failed : cppe 1 ,kHighLevelEvent
44464458 XDFD,-1708
Any subsequent calls yield no problems. While this is not a show stopper,
it is certainly annoying. Any thoughts on what might be causing the
problem?
Thanks in advance for you
Running a recent build from svn on OSX 10.5, the TkAgg interface
becomes unresponsive after plotting a histogram and calling show().
Here is a sample from the process, in case it is useful:
Sampling process 5635 for 3 seconds with 1 millisecond of run time
between samples
Sampling completed, proce
On Dec 2, 2007 10:44 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote:
> > Running a recent build from svn on OSX 10.5, the TkAgg interface
> > becomes unresponsive after plotting a histogram and calling s
On Dec 3, 2007 11:04 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Possibly related to the _tkagg extension -- that's what defines the
> "PyAggImagePhoto" method. If you installed ActiveState's Tcl/Tk after
> building matplotlib, that could explain this. Try doing a clean build
> of matplot
On Dec 3, 2007 10:58 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Dec 2, 2007 9:23 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote:
> > Running a recent build from svn on OSX 10.5, the TkAgg interface
> > becomes unresponsive after plotting a histogram and calling s
7.63686824e+00,
9.16364268e+00, 1.06904171e+01, 1.22171915e+01,
1.37439660e+01]),
)
In [10]: show()
---
TypeError Traceback (most recent call last)
/Users/chris/Projects/Occupancy-abund
On Dec 3, 2007 7:34 PM, Barry Wark <[EMAIL PROTECTED]> wrote:
> sorry instances of self.plotView.image
>
> On Dec 3, 2007 3:38 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote:
>
>
I replaced the one instance of this that I found. I now get the fol
er plot
> > commands too. Not that you can easily test now w/ the active tcl
> > install.
>
> Chris, if you get some time to explore this further, I'd like to see
> if we can sort it out. If you could remove the acive tcl and do a
> clean rebuild of mpl, I'd like
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
-
Of course, I meant CocoaAgg, not -Aff.
cf
On Dec 4, 2007 1:49 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote:
> I have the CocoaAgg backend specified in matplotlibrc in ~/.matplotlib/ as:
>
> backend : CocoaAgg
>
> However, when I plot, matplotlib uses the TkAgg bac
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
-
of simpler objects. In general, this idea is probably
more work than John's DPI suggestions.
Chris
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anythi
the problem.
>
> Also, what backend are you using when it breaks? Just Agg, or one of
> the Gui+Agg backends?
>
> Cheers,
> Mike
>
> Chris Kennedy wrote:
>> hi,
>> I get this error when I'm generating numerous .png files using
>> matplotlib 0.9.2
llocate error if I switch the backend to 'SVG', that
has it own set of issues though: telling me it can't use, but then
generating SVG files an
your simple example inside of a loop, does the error
> eventually occur -- or only within the context of your app? If the
> latter, we'll need to somehow narrow it down to a specific setting or
> method that causes the problem.
>
> Also, what backend are you using when it br
s mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Chris Kennedy http://www.coventor.com
Sr. Product ManagerP
ime, so thought I'd ask here...
Hope you can help!
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.net email is sponsored by: Micro
I'm getting a nonsensical error when attempting to make a simple plot
with a date axis. Googling shows this similar errors, but none with a
date axis. What could be causing this?
>>> import datetime
>>> from pylab import figure, show
>>> fig = figure()
>>> ax = fig.add_subplot(111)
>>> dates = [da
to pass keyword
parameters such as "label" or use other methods such as plot_date
Any help greatfully received!
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
--
Alan G Isaac wrote:
> On Tue, 11 Mar 2008, Chris Withers apparently wrote:
>> the first time I call show()
>
> http://matplotlib.sourceforge.net/faq.html#SHOW
Okay, that tells me that I prettymuch don't want to be using show(), but
I don't think I want interactive
ll last):
File "dynamic_demo.py", line 3, in
import gobject
ImportError: No module named gobject
What does that mean?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
--
Chris Withers wrote:
> Matthias Michler wrote:
>> plot([x1], [y1], "bo", [x2], [y2], "r+")
>
> This didn't work :-S
>
> - the first time I call show(), execution never comes back to my script
> so the code never gets to plot any further points
g trouble expressing myself clearly, but hopefully I'm making
some kind of sense.
Any ideas very greatfully recieved!
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
are PDF back ends for Matplotlib, right?)
If you really insist on trying with Word, your best bet is to interact
with Word via the win32com package...
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- ht
en come from when a
person turns up and reads the meter, which isn't at all regular ;-)
Does that make more sense? Any ideas?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
t I'd like
the point not to be there, not just down the bottom of the graph...)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This S
Eric Firing wrote:
> Chris,
>
> Use masked arrays. See masked_demo.py in the mpl examples subdirectory.
Hi Eric,
I took a look at that, but it uses:
import matplotlib.numerix.npyma as ma
...and matplotlib.numerix isn't listed in the API reference. Where are
the docs for this?
tions allow.
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual St
Hi All,
I'm wondering what work people have done with matplotlib in
multi-threaded environments such as your average python web framework.
Is matplotlib threadsafe?
How have people gone about safely using it in a multi-threaded environment?
cheers,
Chris
--
Simplistix - Content Manag
Hi All,
I'm using plot_date to plot some dates, but this sets an xlabel, and I
don't want the plot to have an xlabel.
How do I remove it?
I tried:
xlabel(None)
...but that just set the xlabel to 'None'...
cheers,
Chris
--
Simplistix - Content Management, Zope
now appears about 25% off the right hand of the screen or whatever I
save the figure to.
How can I have the legend as placed above but with the whole of it showing?
cheers,
Chris
--
Simplistix - Content Management, Zope
Matthias Michler wrote:
> you can try xlabel of an empty string:
>
> xlabel(' ')
Thanks, and yes, a truly empty string xlabel(''), works :-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
Hi All,
How do I go about showing minor ticks as lines across the whole plot, as
opposed to just little ticks at the side?
I can get the major ticks to show by doing grid(True), but how do I get
the same effect for minor ticks?
cheers,
Chris
--
Simplistix - Content Management, Zope
;t end up being half off the figure...
Anyone know how to do that?
(and thanks to Matthias for all his help! :-) )
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
t was in the online docs as well as the docstring of the method;-)
However, this isn't quite what I want... I only want the grid for the
y-axis (ie: horizontal lines in the grid, but no vertical), how would I
do that?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Cons
y to look like:
from numpy import nan
aa = [3.4,2.5,nan,nan,nan,1.1,2.2]
values = numpy.array(aa)
values = numpy.ma.masked_equal(values,nan)
I only wish that masked_equal didn't blow up when aa contains datetime
objects :-(
cheers,
Chris
--
Simplistix - Content Management, Zope & P
to call its legend method?
How does figure.legend interact with subplots?
I have a bout 6 subplots on the same figure(?) and they each need to
have a legend which is not obscuring the data plotted and isn't
obscuring any other figure...
cheers,
Chris
--
Simplistix - Content Management,
Hi All,
A few of the units demos include the lines:
from pylab import nx
...but this import errors for me.
Why is that?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.c
I doing wrong? How do I get the grid to show up
behind the lines?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.net email is sponsored
Chris Withers wrote:
> I tried fiddling with the zorder of the plot and the grid but nothing
> had any effect. What am I doing wrong? How do I get the grid to show up
> behind the lines?
Actually, I did manage to fix this by specifying a zorder of 10 for the
plots and a zorder of
'datetime.datetime' and
'float'
What am I doing wrong?
Also, how do I go about adding a second set of bars? (ie: from data2)?
(Bear in mind that in the real use, there are over 600 days worth of
data, so I want to take advantage of the normal tick locators, etc as
much as possi
--
So I see, but then why if I set the zorder of the grid to 0 or 1, does
it still show up on top of the lines, unless I set the zorder of the
lines to 10 or above?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consu
the best summary of the interaction ;-)
> I think in that case the axes-legend is the preferred one, but I have no idea
> how to ensure that nothing is cover by the legend without difficult tuning of
> the parameters or at least ensure that all labels have the same widths.
Hi All,
Why does the following render small gaps horizontally between the bars?
import pylab
data = [1,2,1,2,4,2]
labels = pylab.arange(len(data1))
pylab.bar(labels,data1,width=1,linewidth=0)
pylab.show()
How do I make the small gaps go away?
cheers,
Chris
Hi All,
Is there any way in MPL to do gradient filled bars like you can in
Excel? (click data series -> format data series -> patterns -> fill
effects -> gradient -> diagonal up)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
Eric Firing wrote:
>> How do I make the small gaps go away?
>
> With svn I don't see any gaps in the example above, either on screen or
> when saved to a png file.
That's cool'n'all, but when is svn going to make it into a Windows
binary release? ;-)
cheer
Eric Firing wrote:
> Short of laboriously putting an image in each bar, no.
That's a shame :-(
So, no gradient filled patches in MPL?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simp
rather than trying to interpolate
them away, however)
> As it seems you're dealing with series indexed in time, you may want to try
> scikits.timeseries, a package Matt Knox and myself implemented for that very
> reason.
How would this help me here and where can I fi
lly just not appear at all, but I'd settle for appearing at 0...
Any ideas?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.net email
the
data is missing, but I guess that would have to return multiple
polygons, and I don't know how that would work?
> provide them in mpl. I would be happy to fix this gap in mpl's handling
> of gappy data,
...heh ;-)
> but I can't make it a priority use of
Giorgio F. Gilestro wrote:
>
> import numpy as np
> a = ['','','',1.1,2.2]
> mask_a = [i == '' for i in a]
> b = np.ma.MaskedArray(a, mask=mask_a)
Not very efficient, though, is it?
cheers,
Chris
--
Simplistix - Content
eased around long-running C blocks.
It's not performance I'm looking for, it's making sure that MPL apps
served from multi-threaded wsgi servers don't screw each others charts
up ;-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
e"?
> At the very least, I think we would have to take all the global state
> information and put it in a class instance, so there could be multiple
> plotting machines.
Yes.
cheers,
Chris
--
Simplistix - Content Management, Zope & Pytho
ate numpy and matplotlib ;-) )
Out of interest, does MPL have unit tests? It should ;-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.net emai
o do much
more work as a user if you want bar charts where the bars are
side-by-side than if you use a line plot.
Are bar charts a relatively new addition? They feel less slick to use
than the other options :-S
cheers,
Chris
--
Simplistix - Content Management, Zope & Py
can get more SVN Windows users on board, more crazy
> Windows-only bugs will get found and squashed sooner... ;)
Well, tell me how to get the svn trunk and how to compile and I'll give
it a go :-)
cheers,
Chris
--
Simplistix - Conte
t with plot or plot_dates?
What problems are you experiencing?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.net email is sponsored by:
while scanning that wiki
page, but nothing that would have helped me...
cheers,
Chris (who might well be missing something...)
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
also some lower-level unit tests for frequently-reoccurring
> bugs in the unit directory.
Indeed, is there any kind of "full unit test" suite that a developer can
run when changing things ot make sure they haven't fubarred anything?
cheers,
Chris
--
Simplistix - Content
Kenneth Miller wrote:
>
> back in time. When i pass plot_dates timestamps for the y axis, and
> integers for the x axis it simply displays the y-axis as floats.
did you try:
plot_dates(x,dates,ydate=True)
?
Chris
--
Simplistix - Content Management, Zope & Pyth
roblem, I just run in a "while True" loop and leave it
running until I close the plot window.
Shame I get that horrible exception when I do close the plot window,
wish I knew how to make it stop :-S
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
is the crucial bit.
Looks like you've set MPLCONFIGDIR to a read-only dir, or the
.matplotlib in the current dir or .matplotlib in your home directory
aren't writeable by the user running your python script. (I'm doing a
bit of guesswork here...)
What is it that you're try
stall the windows binary for python 2.5 from here:
http://downloads.sourceforge.net/matplotlib/matplotlib-0.91.2.win32-py2.5.exe
Ignore the Enthought stuff ;-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.sim
KeyboardInterrupt
Fatal Python error: PyEval_RestoreThread: NULL tstate
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
I've had a similar error when I hit the red cross in the corner of t
ms comes from. I have seen that using
> idle and the latest release of matplotlib on and winxp, but I can't reproduce
> it on my linux system.
*sigh* ;-)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
---
>
> ioff()
> show()
So, basically make the x axis time instead of numbers.
I think the problem is actually that the daets are quite long in their
format. If they were rotated through 90 degress it'd likely be fine.
How would I do this?
Also, how would I get this kind of upd
figure and replot?
(I have just been calling errorbar lots, but I'm guessing that if I add
a legend, I'll have one entry for each time I called errorbar :-S)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python C
ck-end didn't try to use the accelerated module for
wxPython2.8.
Any ideas?
By the way, there are a number of other small bugs cropping up in the
pylab window with wxagg too -- but I'll look at those once I solve this.
Is no one else using MPL with wxPython2.8?
-Chris
--
Chris Barker wrote:
> Hi all,
>
> I'm having an odd issue with the wxAgg back-end:
Update:
If I remove:
matplotlib/backends/_wxagg.pyd
The problem goes away.
It looks like that pyd is getting loaded even though I'm running wxPython2.8
However, now I get a non-valid pn
Hey,
Up until recently I have been using mpl 0.90.1, and my application
worked fine. Yesterday I upgraded to 0.91.2 and am now getting the
following traceback:
File "application.
py", line 667, in plot
radial_plot_figure.savefig(png_file, dpi=self.dpi)
File "C:\Python25\Lib\site-packages
3):13,
}
I'm worried about getting the dates out in order such that I get a
straight line plot, rather than the zigzag back-and-forth line I reckon
I'd get if I did:
dates = []
count = []
for date,count in data.items:
dates.append(date)
count.append(count)
plot(dates,counts)
gg_oo.py.
I tried this example, and it generates no output.
Is that to be expected?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
-
This SF.ne
f the screen.
If I can get it to be to-left, then it will all be visisble without me
having to move it with a mouse ;-).
Any ideas?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplis
o be carried alongside?
This makes me really appreciate application bundles on the Mac!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115
Michael Droettboom wrote:
> Chris Barker wrote:
>> I'm successfully getting all the MPL data files into spy2exe with:
>>
>> DATA_FILES = matplotlib.get_py2exe_datafiles()
>>
>> The problem is that that dumps a LOT of stuff, and I don't need most
>
Interval, Bbox, Affine File "c:\python24\lib\site-packages\matplotlib-0.87.4-py2.4-win32.egg\matplotl
ib\_transforms.py", line 17, in ? from matplotlib._ns_transforms import *ImportError: DLL load failed: The specified module could not be found.I have tried building matplotlib myself using
gw32 compiler without those lines, it
appears. I used the --compiler switch on the build, but to no avail.
I'm a bit stuck here, as matplotlib does not build, and the binary
does not seem to work. I'm trying to put together a package that
contains numpy, matplotlib and scipy to distribute to
lude -IC:\Python24\include -IC:\Py
thon24\PC -c src/_tkagg.cpp -o build\temp.win32-2.4\Release\src\_tkagg.o" failed
with exit status 1
However, I have Tk installed, as it comes bundled with ActiveState python.
--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us
--
ge of points are labeled on the axis?
Chris
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics th
Thanks, that's exactly what I was looking for.
Chris
On 7/31/06, Richard Albright <[EMAIL PROTECTED]> wrote:
> take a look at the finance_work2.py code on the screenshots page:
> http://matplotlib.sourceforge.net/screenshots.html
>
> On Mon, 2006-07-31 at 11:52 -0400,
Hi,
I am having trouble getting a variation of the tutorial plot_date()
to work. I get the classic: RuntimeError: xdata and ydata must
be the same length.
The tutorial on the matplotlib site shows how to plot dates using
whole days. I am plotting using multiple days showing each minute
Title: Re: [Matplotlib-users] plot_date + xdata & ydata must be same len
Thanks,
I actually got a work around now. Thanks for the follow.
Chris Brinley ([EMAIL PROTECTED])
Orbitz - AA.com Operations
Phone: 312-894-4787
Cell: 312-479-8193
Pager: 866-292-3508
-Orig
d more and more.
Does anyone know how to change this?
Regards,
Chris Niekel
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opini
.0, 0.9.8, and 0.9.6, and I get some
variation of the error below when I try to import matplotlib. What
version of Numpy should Matplotlib work with?
Regards,
Chris Spencer
RuntimeError: module compiled against version 102 of C-API but
this version of numpy is 90709
The import of the
t's been fixed?
Regards,
Chris
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application S
I have a matplotlib
figure (by the way - matplot lib is brilliant) with lots of widgets (buttons,
check boxes) on it, and am wondering if it is possible to put a combo box on it?
Cheers,
Chris
Bartley
-
Using
the correct wx-config.
Sorry I don't have the specific details right now, but it should be in
the archives, or poke through setup.py and associated files for more
info. I think I put a helpful warning in there at some point.
good luck,
-Chris
I
> had assumed the matplotlib fo
On Mon, Aug 12, 2013 at 7:01 AM, Michael Droettboom wrote:
> I propose to fix this by turning on interactive only when
> running at an interactive console.
I embed MPL more than other uses, and this sounds like a fine solution to me/
Thanks,
-Chris
--
Christopher Barker
g said, there is no reason that we need to use the same build
system -- we could easily have custom build scripts for a project, and
still have it share the dependencies.
I was planning on getting it all further along before announcing the
project and looking for help, but since is came up...
-Ch
101 - 195 of 195 matches
Mail list logo