[Matplotlib-users] mixed color dashes

2013-07-22 Thread Mark Bakker
Hello List, I want to make dashes that alternate in color, red, white, blue. Or black, yellow, red, etc. I thought I could overlay different dashes (first draw the black, then the yellow then the red dashes), but the 'dashes' command always starts with a colored dash. What I need is the opposite,

[Matplotlib-users] datestr2num of year and month

2013-09-19 Thread Mark Bakker
Hello List, When I use datestr2num('2010-05') it nicely converts that to a number representing the date. When I convert that number back with num2date, it turns out it sets the day to the 19th of the month. The dime is 0:00:00. Any reason it is set to the 19th instead of the first? Maybe because t

Re: [Matplotlib-users] datestr2num of year and month fails for February on September 30

2013-09-30 Thread Mark Bakker
a bug report or a feature request? Thanks, Mark > > On Thu, Sep 19, 2013 at 11:38 PM, Goyo wrote: > >> 2013/9/19 Mark Bakker : >> > Hello List, >> > >> > When I use datestr2num('2010-05') it nicely converts that to a number >> > r

[Matplotlib-users] why does floor(x) return a float while docs state it returns integer?

2014-03-31 Thread Mark Bakker
I expected that floor(x) would return an integer especially since the docs state: Return the floor of the input, element-wise. The floor of the scalar `x` is the largest integer `i`, such that `i <= x`. It is often denoted as :math:`\lfloor x \rfloor`. Any reason why it returns a float? Bug/f

Re: [Matplotlib-users] why does floor(x) return a float while docs state it returns integer?

2014-04-01 Thread Mark Bakker
-do-pythons-math-ceil-and-math-floor-operations-return-floats-instead-of On Mon, Mar 31, 2014 at 5:05 PM, Mark Bakker wrote: > I expected that floor(x) would return an integer especially since the docs > state: > > Return the floor of the input, element-wise. > > > The floor

[Matplotlib-users] problem with patches in animation

2014-04-23 Thread Mark Bakker
Hello list, I am trying to animate a patch. The animation should show a circle orbiting around a point. I took the code from http://nickcharlton.net/posts/drawing-animating-shapes-matplotlib.html Problem is that when I run the code, the animation doesn't remove the initial position of the circle

Re: [Matplotlib-users] problem with patches in animation

2014-04-23 Thread Mark Bakker
eturn patch, > > to > > def init(): > *patch.center = (5, -5)* > ax.add_patch(patch) > return patch, > > Cheers, > Ray > > > On Wed, Apr 23, 2014 at 5:44 AM, Mark Bakker wrote: > >> Hello list, >> >> I am trying to animate a patch.

Re: [Matplotlib-users] problem with patches in animation

2014-04-23 Thread Mark Bakker
t;>> >>> >>> On Wed, Apr 23, 2014 at 9:34 AM, Raymond Smith wrote: >>> >>>> Hi Mark, >>>> >>>> I can't say this is the 'proper' solution or the correct >>>> interpretation, but it should work. >>&g

Re: [Matplotlib-users] problem with patches in animation

2014-04-23 Thread Mark Bakker
.org/examples/animation/index.html>, so I'm > not sure if it's a bug or not. Either way, it could be a request for > documentation, perhaps. > > > On Wed, Apr 23, 2014 at 10:08 AM, Mark Bakker wrote: > >> I thought about that. I even thought about changing the

[Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Mark Bakker
Hello List, datestr2num works great when dates are stored as month/day/year (as American like). Europeans store them as day/month/year. Any quick function to convert a day/month/year string do a date? Is there an eu version: datestr2numeu? Thanks, Mark -

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Mark Bakker
h formats for the converter? I guess not Thanks, Mark On Fri, Apr 25, 2014 at 10:46 AM, Mark Bakker wrote: > Hello List, > > datestr2num works great when dates are stored as month/day/year (as > American like). > > Europeans store them as day/month/year. > > Any

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Mark Bakker
t 11:17 AM, Andreas Hilboll wrote: > On 25.04.2014 11:02, Mark Bakker wrote: > > OK, I figured out I can use: > > converters={0:strpdate2num('%d-%m-%y')} > > > > What now if part of my dates are given as 'day-month-year' and part as > > 'da

[Matplotlib-users] Do animations work in Notebook on Mac?

2015-02-02 Thread Mark Bakker
Hello List, I could swear that animations used to work inside a Notebook using the nbagg backend on my Mac. But they seem not to do anything anymore. Just updated to mpl 1.4.2 and am running IPython 2.3.1. Can anybody get the basic example to work: http://matplotlib.org/1.4.2/examples/animation/

Re: [Matplotlib-users] Do animations work in Notebook on Mac?

2015-02-02 Thread Mark Bakker
es to the nbagg backend that I think are lined up >> for the upcoming 1.4.3 release (the release candidate was tagged >> yesterday). Perhaps it has been fixed there? What version did you upgrade >> from? >> >> Cheers! >> Ben Root >> >> >> On M

[Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-07 Thread Mark Bakker
Hello list, I want to axes above each other. They share the x-axis. The top figure has 'aspect=1' (it is a map), the bottom figure shows a cross-section along a horizontal line on the map, so it doesn't have 'aspect=1'. When I do this with code, for example like this: fig, axes = plt.subplots(nro

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Mark Bakker
xes. > > Tom > > On Tue, Apr 7, 2015, 15:54 Mark Bakker wrote: > >> Hello list, >> >> I want to axes above each other. They share the x-axis. The top figure >> has 'aspect=1' (it is a map), the bottom figure shows a cross-section along >> a hor

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Mark Bakker
as Caswell wrote: > Can you please provide a minimal, but complete and runnable example of > what you are doing? > > On Wed, Apr 8, 2015, 08:13 Mark Bakker wrote: > >> Thanks, Thomas. >> >> That works indeed, but it doesn't make the figure adjustable, which is

[Matplotlib-users] background color of text plots as foreground

2015-07-09 Thread Mark Bakker
Hello list, I am trying to set the backgroundcolor of a textbox: from pylab import * plot([1, 2, 3]) text(1, 2, 'Hello', backgroundcolor = 'red') This plots a nice red box but no text. It looks like the backgroundcolor is set as the foreground. Am I doing something wrong or is this a bug? mpl ve

Re: [Matplotlib-users] background color of text plots as foreground

2015-07-09 Thread Mark Bakker
Fails on MacOSX backend. Just tried it, and it works fine with the QT backend. So I guess a MacOSX bug... Thanks for your help, Mark On Thu, Jul 9, 2015 at 6:18 PM, Sterling Smith wrote: > Works for me with TkAgg backend on 1.4.3. > > -Sterling > > On Jul 9, 2015, at 3:52

[Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-22 Thread Mark Bakker
Hello list, I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine). My file is simple: from pylab import * ion() plot([1,2,3]) When I run this form within Eclipse, I do see a graphing window open up bu

[Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-23 Thread Mark Bakker
Hello list, I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine). My file is simple: from pylab import * ion() plot([1,2,3]) When I run this form within Eclipse, I do see a graphing window open up bu

Re: [Matplotlib-users] matplotlib with eclipse: how to get a graph?

2009-09-24 Thread Mark Bakker
Excellent. Many thanks.After all those years of using matplotlib, I finally find a use for show() Mark On Wed, Sep 23, 2009 at 11:02 PM, Gökhan Sever wrote: > > > On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker wrote: > >> Hello list, >> I recently started using Eclipse wit

[Matplotlib-users] setting ticks on Axes3D

2010-01-04 Thread Mark Bakker
Hello list, I am trying to set ticks on an Axes3D plot. What I really want is, actually, not to have any ticks. For a 2D plot I set the ticks to an empty list. But in a 3D plot, I cannot set any ticks whatsover. At least not with a sequence. Any thoughts? from mpl_toolkits.mplot3d import Axes3D f

[Matplotlib-users] bezier curve through set of 2D points

2010-01-14 Thread Mark Bakker
Hello List, Does matplotlib have a routine that can fit a cubic Bezier curve through an array of 2D points? I saw some Bezier routines in Path, but couldn't find what I am looking for. If matplotlib doesn't have it, does anybody have another suggestion in Python? Thanks, Mark -

[Matplotlib-users] 3D output to pdf for animation?

2010-01-21 Thread Mark Bakker
Hello List, I know I may be hoping for too much, but is there a way to get the 3D figures into a file that may be converted to an animated pdf? Pdf now allows for inclusion of a 3D figure, and as far as I can see it needs to be in U3D or PRC format. Has anybody been successful converting any of

[Matplotlib-users] Easy question: how to select specific subplot for second (or more) time

2008-06-10 Thread Mark Bakker
Hello list - I want to plot something in two subplots, then add something to the first subplot. How do I select the first subplot after I have plotted on the second subplot? For example: subplot(211) plot([1,2,3]) subplot(212) plot([4,3,2]) Now I want to add something to the first subplot. So I

Re: [Matplotlib-users] Easy question: how to select specific subplot for second (or more) time

2008-06-10 Thread Mark Bakker
t; Wow, a question I can actually answer: > > ax1 = subplot(211) > ax2 = subplot(212) > ax1.plot([1,2,3]) > ax2.plot([4,3,2]) > ax1.plot([3,2,1]) > > Best, > -Tony > > > On Jun 10, 2008, at 9:09 AM, Mark Bakker wrote: > > Hello list - >> >> I wa

Re: [Matplotlib-users] Easy question: how to select specific subplot for second (or more) time

2008-06-10 Thread Mark Bakker
Yep, that works. I thought I had tried that, but I must have done something wrong. Sorry for the clutter, Mark On Tue, Jun 10, 2008 at 4:00 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Tue, Jun 10, 2008 at 8:41 AM, Tony S Yu <[EMAIL PROTECTED]> wrote: > > Hey Mark, > > Actually, recalling subp

[Matplotlib-users] APNG support?

2008-07-01 Thread Mark Bakker
I think APNG suppot woudl be very cool. Would it be hard to write a simple Python script that creates an APNG file from a set of PNG files? That would be really killer. Just as important, I was wondering what programs support APNG. It works fine in my Firefox 3, but I also need it in some presenta

[Matplotlib-users] plotting array with inf

2008-08-05 Thread Mark Bakker
I have a question about plotting an array with an inf. For example: y = np.array([2.,1.,0,1.,2.]) y = 1.0 / y So y is array([ 0.5, 1. , Inf, 1. , 0.5]) When I plot this, I get an error, of which the last line is: OverflowError: math range error I presume the problem is using the autoscale

[Matplotlib-users] get a google map image into matplotlib?

2008-08-05 Thread Mark Bakker
Hello list - There is a recent matlab script floating around that downloads an image from google map and plots it in a matlab figure. Can we do the same? I am sure we can (not sure we want, as Google has been somewhat difficult to people writing scripts to manipulate images from google maps). My

Re: [Matplotlib-users] plotting array with inf

2008-08-06 Thread Mark Bakker
Thanks for stepping up to the plate, Eric. I was asleep on this side of the ocean, so I didn't join in the discussion. >From a functionality point of view, it seems to be a good idea to me not to plot nans (that would actually be impossible) and not to plot infs. The latter are indeed different t

[Matplotlib-users] How to: manually select contour label location

2008-08-06 Thread Mark Bakker
Hello list - I read that in 0.98.3 we can manually select contour label locations! I searched around, but couldn't find any instructions. Can anybody point me in the right direction? Thanks, Mark - This SF.Net email is spon

[Matplotlib-users] can we set markerspacing?

2008-08-06 Thread Mark Bakker
Can we set the markerspacing in mpl? If I do plot( linspace(0,10,100), 'o' ) I get 100 markers. What if I want to plot every tenth marker? Or better even, what if I want to have a certain spacing between markers. I know how to work around this, of course (just plot every tenth point), but I was

Re: [Matplotlib-users] How to: manually select contour label location

2008-08-06 Thread Mark Bakker
Never mind, I found it. The solution is: cobj = contour(x,y,z) cobj.clabel(manual=True) How nice! Mark On Wed, Aug 6, 2008 at 10:05 AM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Hello list - > > I read that in 0.98.3 we can manually select contour label locations! > > I

[Matplotlib-users] bug in labeling contour lines

2008-08-06 Thread Mark Bakker
Hello list - There seems to be a bug in labeling contour lines. When I call clabel, it removes all contours that are not labeled (because the label doesn't fit on the section of contour, I presume). This seems like a bug to me (or a really odd feature). Easy example: >>> x,y = meshgrid( linspace

Re: [Matplotlib-users] bug in labeling contour lines

2008-08-06 Thread Mark Bakker
ug 6, 2008 at 2:27 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Hello list - > > There seems to be a bug in labeling contour lines. > When I call clabel, it removes all contours that are not labeled (because > the label doesn't fit on the section of contour, I presume).

[Matplotlib-users] how to end manually positioning contour labels?

2008-08-06 Thread Mark Bakker
I just played with putting contour labels on manually (and interactively). It works fine by just left clicking on the spot where you want a label. But how do you end this feature? The doc string says: right click, or potentially click both mouse buttons together. Neither works for me on win32, m

[Matplotlib-users] problems with labeling contour lines - 2nd try

2008-08-11 Thread Mark Bakker
Hello - I have two problems labeling contour lines in 0.98.3. First, when I call clabel, it removes all contours that are not labeled (because the label doesn't fit on the section of contour, I presume). This seems like a bug to me (or a really odd feature). Easy example: >>> x,y = meshgrid( lins

[Matplotlib-users] How to end manually adding contour labels: Solved

2008-08-21 Thread Mark Bakker
Dear list - David Kaplan added a very cool new feature to add labels to a contour plots manually. Check out the ginput_manual_clabel.py example. I posted a question about this before, because I couldn't figure out how to end the manual selection of label positions. The doc string (and the examp

[Matplotlib-users] plans for data entry box widget?

2008-10-22 Thread Mark Bakker
Dear mpl developers - I recall there has been some discussion in the past on developing the ability to have a widget for entering data. I also recall that was not an easy thing to do. What's the current status? Doable? Thanks, Mark ps. The new website is really very nice! --

[Matplotlib-users] How to change yticks on colorbar?

2008-11-05 Thread Mark Bakker
Hello list - I am trying to change the yticks on my colorbar (in combination with contourf) and cannot figure out how to do it. Short example: x,y = meshgrid(linspace(0,10),linspace(0,10)) a = contourf(x,y,x,linspace(0,10,6)) b = colorbar(a) This gives a nice colorbar, with ticks at 0,2,4,6,8,1

Re: [Matplotlib-users] How to change yticks on colorbar?

2008-11-06 Thread Mark Bakker
Thanks Stan. I read the docs (which are quite nice), but couldn't find a way to set the ticks after the fact. But your method worked, Mark On Wed, Nov 5, 2008 at 4:00 PM, Stan West <[EMAIL PROTECTED]> wrote: > *From:* Mark Bakker [mailto:[EMAIL PROTECTED] > *Sent:* Wedne

[Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Mark Bakker
I looked at the example of overriding the default reporting of coords, which is here: http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html from pylab import * def millions(x): return '$%1.1fM' % (x*1e-6) x = rand(20) y = 1e7*rand(20) ax = subplot(111) ax.fmt_ydata = mill

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Mark Bakker
, May 31, 2012 at 3:49 PM, Tony Yu wrote: > > > On Thu, May 31, 2012 at 9:31 AM, Mark Bakker wrote: > >> I looked at the example of overriding the default reporting of coords, >> which is here: >> >> http://matplotlib.sourceforge.net/examples/pylab_examples/coords

[Matplotlib-users] easy question on ytick label format

2012-06-01 Thread Mark Bakker
Hello List, I want to plot plot([1000,2000]) Then on the y-axis, I want labels 1 and 2, and at the top of the y-axis I want E3. This works automatically with plot([1e7,2e7]). But I assume that is something that can be set for plot([1e3,2e3]) as well. I have been browsing the examples, and tried t

Re: [Matplotlib-users] easy question on ytick label format

2012-06-01 Thread Mark Bakker
rakana.com/s/advanced_matplotlib_tutorial_with_library_author_john_hunter,1133/index.html > Cheers, > Zoltná > > > > On 06/01/2012 02:58 PM, Mark Bakker wrote: > > Hello List, > > I want to plot plot([1000,2000]) > Then on the y-axis, I want labels 1 and 2, and at th

Re: [Matplotlib-users] easy question on ytick label format

2012-06-01 Thread Mark Bakker
Thanks. Easy and useful. On Fri, Jun 1, 2012 at 7:23 PM, Tony Yu wrote: > >>> On 06/01/2012 02:58 PM, Mark Bakker wrote: >>> >>> Hello List, >>> >>> I want to plot plot([1000,2000]) >>> Then on the y-axis, I want labels 1 and 2, a

[Matplotlib-users] problem with size of axes with imshow

2012-07-27 Thread Mark Bakker
Dear List, When I run this little file (I call it testimage.py), I get a different answer on my Mac (the correct answer) than Windows (the wrong answer). from pylab import * c = ones((10,20)) ax = imshow(c) show() print ax.get_axes().get_position() On my Mac I get: run testimage Bbox(array([[ 0.

[Matplotlib-users] How to determine position of axes after imshow?

2012-07-30 Thread Mark Bakker
Hello List, I am trying to determine the position of the axes after an imshow and am having problems. I get a different answer on my Mac (the correct answer) than Windows (the wrong answer). I have a file called testimage.py with 5 lines: from pylab import * c = ones((10,20)) ax = imshow(c) show(

Re: [Matplotlib-users] How to determine position of axes after imshow?

2012-08-07 Thread Mark Bakker
ax.get_axes().get_position() Running from IPython: run testimage Bbox(array([[ 0.125 , 0.2417], [ 0.9 , 0.7583]])) On Wed, Aug 1, 2012 at 8:56 PM, Stan West wrote: > ** > > *From:* Mark Bakker [mailto:mark...@gmail.com] > *Sent:* Monday, July 30, 2012 05:

Re: [Matplotlib-users] How to determine position of axes after imshow?

2012-08-09 Thread Mark Bakker
, Aug 9, 2012 at 4:02 PM, Stan West wrote: > ** > > *From:* Mark Bakker [mailto:mark...@gmail.com] > *Sent:* Tuesday, August 07, 2012 06:42 > > I tried a few things and found out that doing a pause works. > So why does a pause work, but a draw() or show() does not? > This

[Matplotlib-users] Is there an update on: "Matplotlib 1.1.0 animation vs. contour plots"?

2012-10-02 Thread Mark Bakker
Hello List, Apparently, it is not straightforward to make an animation of contour plots. I found a discussion (and work-around solution including punching ducks) on the list through this link: punch the QuadContourSet until it behaves like an Artist

[Matplotlib-users] large space after superscript in mathtype

2013-02-19 Thread Mark Bakker
Hello List, I want to put the following text on a graph, for example along the x-axis: xlabel('$m^3/d$') This should show the letter m raised to the power 3 and then a slash and the letter d. When I do this, there appears a large space after the power 3 and the slash. So much so that the copy ed

Re: [Matplotlib-users] large space after superscript in mathtype

2013-02-19 Thread Mark Bakker
I found out a \! (negative thin space in Latex) works. xlabel('$m^3\!/d$') On Tue, Feb 19, 2013 at 10:15 AM, Mark Bakker wrote: > Hello List, > > I want to put the following text on a graph, for example along the x-axis: > > xlabel('$m^3/d$') > > Th

[Matplotlib-users] Axes3D figure to U3D

2010-05-29 Thread Mark Bakker
Hello List, Is there anybody who has tried to convert a Axes3D figure to U3D so it can be imbedded in a pdf file? It would be exceedingly cool. If anybody has code that can do this, that would be most excellent. If not, does anybody have any other thoughts on getting a 3D image in an interactive p

[Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file

2010-11-10 Thread Mark Bakker
Hello List, I have a pretty wacky problem. I create a figure which includes negative values along the y-axis: plot([-1,1]) for example. I save the figure as EPS. When I look at the figure with preview on my Mac it looks fine. When I import the figure in my Latex document the negative values disapp

Re: [Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file

2010-11-10 Thread Mark Bakker
That works great. Never would have looked there. Thanks! Mark On Wed, Nov 10, 2010 at 2:27 PM, John Hunter wrote: > axes.unicode_minus : False -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper Dav

[Matplotlib-users] change default format of ticks on vertical axis

2011-03-07 Thread Mark Bakker
Hello List, My values on the vertical axis are large, but the range is small: plot([3004,3005,3006]) By default this plots 0,1,2 as tickmarks along the vertical axis, and then at the top of the vertical axis is prints "+3.005e3". I prefer to simply get 3004,3005,3006 at the tickmarks. Any (eas

Re: [Matplotlib-users] change default format of ticks on vertical axis

2011-03-08 Thread Mark Bakker
Works great Eric. Is this in the documentation somewhere? Thanks, Mark From: Eric Firing > On 03/07/2011 11:51 AM, Mark Bakker wrote: > > My values on the vertical axis are large, but the range is small: > > plot([3004,3005,3006]) > > By default this plots 0,1,2 as tickmar

[Matplotlib-users] numpy datetime64 plans?

2011-08-29 Thread Mark Bakker
Hello List, Does anybody know of any plans to include support for the new datetime64 data type in numpy? If this is the new numpy standard for doing dates and times, it would be great if it would work with plot_date, for example. Just wondering (but boy, would I do a little dance when all this da

[Matplotlib-users] How can I set the backgroundcolor of text with set_backgroundcolor ?

2007-01-03 Thread Mark Bakker
Hello - I want to set the backgroundcolor of text with the set_backgroundcolor function. Does that actually work? I saw a more complicated way to do it by defining a bbox, but this would be much easier (if I got it to work). Here's my example that doesn't work. Thanks for any suggestions, Mark

Re: [Matplotlib-users] How can I set the backgroundcolor of text with set_backgroundcolor ?

2007-01-03 Thread Mark Bakker
Thanks John. This works great. I think, however, that set_backgroundcolor would be useful. It should be easy to fix. If nobody speaks up, I will take a crack at it, Mark On 1/3/07, John Hunter <[EMAIL PROTECTED]> wrote: >>>>> "Mark" == Mark Bakker <[EMAIL PR

Re: [Matplotlib-users] How can I set the backgroundcolor of text with set_backgroundcolor ?

2007-01-03 Thread Mark Bakker
one to add. Probably under pylab. Anybody else want to weigh in? Mark On 1/3/07, John Hunter <[EMAIL PROTECTED]> wrote: >>>>> "Mark" == Mark Bakker <[EMAIL PROTECTED]> writes: Mark> Thanks John. This works great. I think, however, that Mark&g

[Matplotlib-users] Using 'scaled' for aspect ratio

2007-01-03 Thread Mark Bakker
The enhanced way of handling aspect ratios that Eric implemented works great. There is, however, one change from the old implementation that I don't like. In the old implementation, when setting axis('scaled') it also turned autoscale off. This makes sense (and I used it a lot). It means that you

Re: [Matplotlib-users] Using 'scaled' for aspect ratio

2007-01-04 Thread Mark Bakker
self.set_aspect('equal', adjustable='box', anchor='C') self.set_autoscale_on(False) Thanks, Mark On 1/3/07, Eric Firing <[EMAIL PROTECTED]> wrote: Mark Bakker wrote: > The enhanced way of handling aspect ratios that Eric implemented

Re: [Matplotlib-users] Using 'scaled' for aspect ratio

2007-01-06 Thread Mark Bakker
Thanks Eric. I'll give it a shot, Mark On 1/6/07, Eric Firing <[EMAIL PROTECTED]> wrote: Mark Bakker wrote: > Eric - > > Yeah, I agree. The words 'equal' is confusing. But it was taken from > matlab. 'scaled' was my invention/doing. I thought it

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread Mark Bakker
Belinda - The hold state is on by default when you use pylab. To clear a figure you use clf(). Here's a brief example: from pylab import * figure() # Not really needed, you could have typed plot right away, but here you can set some nice features like the size plot([1,2,3]) plot([2,1,2]) # Will

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread Mark Bakker
I have experienced the same problem with IDLE. It only works with -n, but then you lose the nice feature of 'starting over'. Does anybody know a fix so we can do both? Thanks, Mark BTW, when you use pylab in interactive mode, the axis() command should scale your figure interactively, also under I

Re: [Matplotlib-users] x=, y=, z=??

2007-01-13 Thread Mark Bakker
I think this is an excellent idea, Eric. I would love it if this feature would also work in contour. The difficulty I see is that an axis needs to know whether an image or contour plot has been added. If so, it needs access to the array with the data to show the z value. I am thinking out loud here

[Matplotlib-users] basemap conversion to Google Earth?

2007-02-07 Thread Mark Bakker
Hello - Can basemap help with a coversion to Google Earth coordinates and mabye even a kmz file? Thanks, Mark - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integr

Re: [Matplotlib-users] Native file format

2007-02-08 Thread Mark Bakker
Does anybody understand why CXX extensions don't pickle? I have the same problem with my own CXX extensions, which I make with SWIG. On the other hand, FORTRAN extensions using f2py pickle fine! Mark From: "John Hunter" <[EMAIL PROTECTED]> Subject: Re: [Matplotlib-users] Native file format To: "

[Matplotlib-users] bug in axis('scaled') in version 0.90 and proposed fix

2007-02-14 Thread Mark Bakker
lf.set_aspect('auto') if s!= 'scaled': self.autoscale_view() # THIS LINE WAS CHANGED BY ADDING THE IF STATEMENT self.apply_aspect() if s=='equal': self.set_aspect('equal', adjustable='datal

Re: [Matplotlib-users] bug in axis('scaled') in version 0.90 and proposed fix

2007-02-14 Thread Mark Bakker
I have a follow-up on my previous emai. I don't think we should do an autoscale_view() for axis('equal') either. For axis('equal') only the limits of either the x or y axis are adjusted (enlarged really) until the aspect ratio is equal. Not sure about the others. Do we ever need to do it? Mark --

Re: [Matplotlib-users] bug in axis('scaled') in version 0.90 and proposed fix

2007-02-15 Thread Mark Bakker
xis('scaled') axis([1,2,1,2]) # define new axis limits Is this good enough? Do you really need to be able to set the axis limits *before* the call to axis('scaled')? If so, then I am inclined to make this a separate option for the axis command, because I think the present behavior

[Matplotlib-users] problem axis('scaled') with shared axis

2007-02-15 Thread Mark Bakker
Eric - I found another problem that I cannot figure out. I make an axis, and make it 'scaled'. Then I make a second axis that shares the x-axis with the first axis. But then the y limits of the first axis change upon creation, and the 'adjustable' attribute! I know for sure this used to work, but

Re: [Matplotlib-users] problem axis('scaled') with shared axis

2007-02-15 Thread Mark Bakker
s, I realize testing this stuff in interactive mode is not easy. Eric has done a very nice job rewriting my original stuff in an organized and much more comprehensive fashion. These are just some last minor issues that need to be fixed. Mark On 2/15/07, John Hunter <[EMAIL PROTECTED]> w

[Matplotlib-users] New aspect function for pylab

2007-02-26 Thread Mark Bakker
Eric, list - Here is the new aspect function for possible inclusion in pylab. It works great and with the default values for the kwargs, it works exactly the way I think it is useful for a combination of contouring and plotting. What do you think, should we include this? Mark def aspect(*args,

Re: [Matplotlib-users] New aspect function for pylab

2007-02-27 Thread Mark Bakker
ixlim',True) ax.set_aspect(aspect,adjustable,anchor) if fixlim: ax.set_autoscale_on(False) else: ax.set_autoscale_on(True) ax.autoscale_view() draw_if_interactive() return aspect On 2/26/07, John Hunter <[EMAIL PROTECTED]> wrote: On 2/26/07, Mark B

Re: [Matplotlib-users] New aspect function for pylab

2007-02-27 Thread Mark Bakker
AIL PROTECTED]> wrote: On 2/27/07, Mark Bakker <[EMAIL PROTECTED]> wrote: > Thanks for the explanation, John. > I printed out the CODING_GUIDE (sorry, didn't know it existed). > The new function with the extra copy command is shown below. > Can we add this to pylab? Since

Re: [Matplotlib-users] Contour Plot of experimental data (Zack 24)

2007-03-07 Thread Mark Bakker
See the - Gridding irregularly spaced data- how to grid scattered data points in order to make a contour or image plot. In the matplotlib cookbook. Mark

[Matplotlib-users] troubles with plot_date

2007-03-16 Thread Mark Bakker
Hello - I am trying to plot two sets of data on one graph, using plot_date. But I get an error. It is easy to replicate, by calling the plot_date function twice. Is this supposed to work? from pylab import * plot_date(linspace(726468,726668,4),linspace(0,1,4)) plot_date(linspace(726468,726668,4)

Re: [Matplotlib-users] cumulative distribution function

2007-03-22 Thread Mark Bakker
This will give you a smooth line for your cumulative distribution function: x = randn(1) y = sort(x) plot(y,linspace(0,1,1)) Mark - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay

[Matplotlib-users] what is the old default font?

2007-03-28 Thread Mark Bakker
Hello List - A while back, the default font changed in the matplotlibrc file. Does anybody recall what the old default font was? I kinda liked it better than the current font, but I don't recall what it was. Thanks, Mark -

Re: [Matplotlib-users] matlab, idle, interactivity and teaching

2007-03-30 Thread Mark Bakker
Giorgio - Thanks for starting this discussion and sorry for the late reply. Use of Python with matplotlib in the classroom and by students in general is a major objective of mine. I use IDLE with numpy, scipy, and matplotlib. The IDLE problem is really annoying though. Starting with -n is requi

Re: [Matplotlib-users] matlab, idle, interactivity and teaching

2007-03-30 Thread Mark Bakker
I always thought ipython didn't come with a good editor. Am I mistaken? Mark On 3/30/07, Lou Pecora <[EMAIL PROTECTED]> wrote: Have you looked at iPython? I think it's a great way to go. Check it out. --- Mark Bakker <[EMAIL PROTECTED]> wrote: > Giorgio - >

Re: [Matplotlib-users] matlab, idle, interactivity and teaching

2007-04-02 Thread Mark Bakker
Dear List - Thanks for the discussion on the issue of the real strength of the Python/matplotlib/numpy/scipy combo. I use Python for both development and teaching, but my biggest question concerned teaching. When I teach, I need something easy and powerful, but also something that is easy to in

Re: [Matplotlib-users] numpy migration

2007-04-05 Thread Mark Bakker
On Wed, 4 Apr 2007, John Hunter apparently wrote: > If anyone has any comments or objections to this plan, speak now. I only switched a couple of months ago (basically because I was waiting for numpy 1.0 and for scipy to switch) and numpy is so much nicer! (Not that I didn't like Numeric; I co

[Matplotlib-users] using IDLE with -n option HELP

2007-04-10 Thread Mark Bakker
Hello List - I have been using IDLE with the -n option to run matplotlib interactively. Now today I decided to install Python 2.4.4, using the win32 installer on the python webpage. Normally I use the Enthought edition (which I like a lot), but they haven't released a new version with numpy 1.0

[Matplotlib-users] confusion about what part of numpy pylab imports

2007-04-24 Thread Mark Bakker
Hello list - I am confused about the part of numpy that pylab imports. Apparently, pylab imports 'zeros', but not the 'zeros' from numpy, as it returns integers by default, rather than floats. The same holds for 'ones' and 'empty'. Example: from pylab import * zeros(3) array([0, 0, 0]) from nu

Re: [Matplotlib-users] confusion about what part of numpy pylab imports

2007-04-25 Thread Mark Bakker
e (mostly from numpy); but we will take one step at a time. Eric > > Gary R. > > Mark Bakker wrote: >> Hello list - >> >> I am confused about the part of numpy that pylab imports. >> Apparently, pylab imports 'zeros', but not the 'zeros'

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 12, Issue 1

2007-05-03 Thread Mark Bakker
A quick fix (since you need an exam, I guess) would be to make the label with the 'text' command and put it where you want it. I am interested in an elegant fix, Mark On 5/2/07, [EMAIL PROTECTED] Date: Wed, 2 May 2007 11:39:03 -0500 From: "Ryan Krauss" <[EMAIL PROTECTED]> Subject: [Matplotlib-

[Matplotlib-users] use of enthought Python for matplotlib/numpy

2007-05-10 Thread Mark Bakker
I noticed on your Web Lab website that you suggest to download the Enthouhht edition. Although I suggest that to my students for class as well, we are currently running into some problems as the latest Enthought edition still includes an old numpy (version less than 1.0). Some important changes we

Re: [Matplotlib-users] use of enthought Python for matplotlib/numpy

2007-05-11 Thread Mark Bakker
I use Python/numpy/mpl/scipy to teach Computational methods for scientists and engineers. Yeah, a mouthfull, but that's what it is. We mainly solve problems of heat flow, groundwater flow, and diffusion-type equations in the class. Both fun analytic solutions and finite difference solutions. So th

[Matplotlib-users] All-in-one distribution of python/numpy/scipy/mpl for windows

2007-05-14 Thread Mark Bakker
Thanks for the pointer to the new egg installer of Enthought. Nice app, which I will use. But this is, IMHO, not what we need to move the python/numpy/scipy/mpl combo into the more mainstream use. Many potential users won't know what to do with the long list of packages that they have never heard

[Matplotlib-users] How to start IDLE with -n option????

2007-05-14 Thread Mark Bakker
Hello list - I want to run mpl interactively from IDLE on Windows XP. For that I need to use the '-n' option when starting IDLE. However, in the recent version of Python, when I select the IDLE icon and right click to set the properties, the 'target' is now grey and cannot be edited. In the past

[Matplotlib-users] problem with FancyArrow overhang

2007-05-14 Thread Mark Bakker
Hello list - I am trying to use FancyArrow to draw an arrow with given length. The length I use is from 0 to 100. I specify length_includes_head=True. This works fine when I specify a width and length. But when I specify an overhang, the length of the arrow becomes much longer than 100. Am I usin

[Matplotlib-users] simple question: how to set the gap between label and axis

2007-05-15 Thread Mark Bakker
Sorry to bother you guys, but I cannot figure out how to set the gap between the axis label and the axis. I know it can be done. Thanks, Mark - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE ve

Re: [Matplotlib-users] Prompt in MPL

2007-06-05 Thread Mark Bakker
I think a prompt could be very useful in MPL, just to build small little GUI's that only need 1 or 2 boxes. I also realize it is not easy, and for bigger jobs you want a full GUI environment like wx or Tk anyway, so I understand it when developers set other priorities. Then again, I would really u

Re: [Matplotlib-users] Prompt in MPL

2007-06-05 Thread Mark Bakker
I notice the alignment problem. But it looks like you are close. On my machine (win32), the 'enter' key didn't work either. It works like a backspace. That sounds like what Matthias reported. Mark On 6/5/07, John Hunter <[EMAIL PROTECTED]> wrote: On 6/5/07, John Hunter <[EMAIL PROTECTED]> wrote

  1   2   >