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] 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] 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

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

[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] 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] 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] 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

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

[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] 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

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
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.

[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] 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] 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] 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] 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

[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,

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] 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

[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

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:[email protected]] > *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

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:[email protected]] > *Sent:* Monday, July 30, 2012 05:

[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(

[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.

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

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

[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] 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] 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

[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

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] 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] 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] 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

[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] 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] 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] 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

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] 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

[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

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] 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

[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 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] 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 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

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] 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] 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] 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

[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

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] 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

[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] 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

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

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

[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] can any windows 0.91.2 user reproduce

2008-03-25 Thread Mark Bakker
John - What you are saying makes sense, because whatever option I give, I always get Vera included in my eps file but nothing else. Thanks for looking into this, Mark On Tue, Mar 25, 2008 at 6:50 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 12:02 PM, Michael Droettboom

Re: [Matplotlib-users] can any windows 0.91.2 user reproduce

2008-03-25 Thread Mark Bakker
I know. In version 0.90.1 (and earlier) all greek symbols were included in the EPS. Now they are not anymore, and I cannot get any of the options to include them. Does anybody know how to fix this? Mark > > Date: Tue, 25 Mar 2008 10:43:43 -0400 > From: Alan G Isaac <[EMAIL PROTECTED]> > Subject:

Re: [Matplotlib-users] can any windows 0.91.2 user reproduce this bug?

2008-03-25 Thread Mark Bakker
Well, that is odd. The *chi* letter doesn't show up with GSView, or Preview on the Mac. What's going on? Mark On Tue, Mar 25, 2008 at 3:19 PM, Jim Vickroy <[EMAIL PROTECTED]> wrote: > Mark Bakker wrote: > > Thanks to Fred, Chris, and JV for reproducing this bug. >

Re: [Matplotlib-users] can any windows 0.91.2 user reproduce this bug?

2008-03-25 Thread Mark Bakker
sions 0.90.1and earlier. Sorry for the bad news. Anybody know how to fix this? Thanks, Mark On Sun, Mar 23, 2008 at 5:02 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Hello windows users - > > Can anybody using mpl 0.91.2 on windows reproduce this bug: > > from pylab import *

Re: [Matplotlib-users] Bug exporting mathtext to eps file in 0.91.2 on windows

2008-03-19 Thread Mark Bakker
d with 0.91.2, the cm fonts are not included, which I think is causing the problem. What happens when you guys read the attached eps file (created with commands above)? Do you see the chi symbol on the screen? Thanks for looking into this, Mark On Wed, Mar 19, 2008 at 2:18 PM, John Hunter <

Re: [Matplotlib-users] Bug exporting mathtext to eps file in 0.91.2 on windows

2008-03-19 Thread Mark Bakker
d or print to file), edit the ps file > to be a eps by changing the header to %!PS-Adobe-2.0 EPSF-2.0 and make > sure the bounding box is specified (see > http://www.postscript.org/FAQs/language/node82.html for details) > > Bernhard > > > On Wed, Mar 19, 2008 at 10:22 AM, Mark Bak

Re: [Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-19 Thread Mark Bakker
Hello Mike - Thanks for taking a look at this. Easy example: from pylab import * plot([1,2,3]) text(1,1.5,r'$\chi$') savefig('d:/temp/test.eps') There shoud now be a line and the symbol chi. Works great in the pdf file, not in the eps file. Both are attached. Strangely enough at the end of the

Re: [Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-18 Thread Mark Bakker
Just upgraded to Ghostview 4.9 with Ghostscript 8.61, but it still doesn't work. Does anybody see greek symbols in eps files with mpl 0.92.1? Mark On Tue, Mar 18, 2008 at 5:07 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Hello Bernhard - > > When I set the fonttype to 4

Re: [Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-18 Thread Mark Bakker
3 (Type3) or Type 42 > > > (TrueType) > > > pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 > > > (TrueType) > > > > > > this includes the missing symbols into the ps/pdf file, if you choose > > > type 42 the complete font wil

Re: [Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-17 Thread Mark Bakker
mathtext.fontset setting, try using stix or cm: > mathtext.fontset: cm > > best wishes, bernhard > > > > On Fri, Mar 14, 2008 at 2:15 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > > > Hello - > > > > I am trying this again. I recently upgraded to 0.91.

[Matplotlib-users] Point-specific colors with scatter

2008-03-14 Thread Mark Bakker
Not sure, but do you just mean: Point-specific colors with scatter scatter([0,1,1,0],[0,0,1,1],10,'y',edgecolor='y') Gives yellow points with size 10 color yellow. Mark - This SF.net email is sponsored by: Microsoft Defy al

[Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-14 Thread Mark Bakker
Hello - I am trying this again. I recently upgraded to 0.91.2, and export of mathtext to eps files seems broken (at least with the default matplotlibrc file). Figure looks great on the screen (interactive mode). Exporting to png still works fine. But writing to eps file, the greek symbols (I tr

[Matplotlib-users] problem exporting mathtext to eps file in 0.91.2

2008-03-12 Thread Mark Bakker
Hello - I recently upgraded to 0.91.2, and export of mathtext to eps files seems broken (at least with the default matplotlibrc file). Figure looks great on the screen (interactive mode). Exporting to png still works fine. But writing to eps file, the greek symbols (I tried \theta and \lambda) d

Re: [Matplotlib-users] strangely shifted PostScript output when

2008-02-26 Thread Mark Bakker
a shot. You also don't have to set the backgroundcolor of your plot anymore. Mark On Tue, Feb 26, 2008 at 3:22 PM, Jochen Voss <[EMAIL PROTECTED]> wrote: > Hi Mark, > > On Tue, Feb 26, 2008 at 11:30:55AM +0100, Mark Bakker wrote: > > As a workaround, can you just turn

Re: [Matplotlib-users] strangely shifted PostScript output when

2008-02-26 Thread Mark Bakker
As a workaround, can you just turn the axis box and ticks off? xticks([]) yticks([]) setp(ax,'frame_on',False) Or does that give the same problem? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(

Re: [Matplotlib-users] strange axis limits behavior after using aspect_ratio

2008-02-14 Thread Mark Bakker
aybe someone > else can answer -- is there a reason not to call apply_aspect() from > set_aspect() besides a little extra computation? It obviously will > still have to be called from draw (in case the figure size changes), but > does it hurt to do it one extra time? > > Cheers, >

[Matplotlib-users] strange axis limits behavior after using aspect_ratio

2008-02-14 Thread Mark Bakker
Hello - As reported in an earlier post, when setting aspect ratio, the axis limits don't get updated correctly it seems. Or maybe I have to make another function call. Very easy example: from pylab import * ax = subplot(211) plot([1,2,3]) ax.set_aspect('equal',adjustable='datalim') print ax.get_x

Re: [Matplotlib-users] How to get current value of xlim/ylim?

2008-02-11 Thread Mark Bakker
Hello Heiko - dir(graph) would at least have given you a list of the functions and attributes, so you may have been able to spot the get_xlim function. I use that a lot, Mark > > -- > > Date: Mon, 11 Feb 2008 14:14:03 +0100 > From: Slackenerny <[EMAIL PROTECTED]> > S

Re: [Matplotlib-users] aspect_ratio in combination with sharex

2008-02-11 Thread Mark Bakker
On Feb 11, 2008 2:35 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Before I look into this further: what version of mpl are you using? > I am using 0.91.2 using the win32 installer for Python 2.4. Thanks for looking into this, Mark --

Re: [Matplotlib-users] aspect_ratio in combination with sharex

2008-02-11 Thread Mark Bakker
#x27;datalim') print ax.get_xlim() # Prints 0 to 5 while datalimit is much larger draw() print ax.get_xlim() # Now datalimit is correct and sharex works ax2 = subplot(212,sharex=ax) draw() On Feb 11, 2008 9:56 AM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Hello - > > I have a hard tim

[Matplotlib-users] aspect_ratio in combination with sharex

2008-02-11 Thread Mark Bakker
Hello - I have a hard time getting aspect_ratio to work correctly with sharex. This used to work quite a while ago, and has been broken for a long time (or at least I don't know how to get it to work) But I finally found the time to put a simple example together to determine if I do something wron

Re: [Matplotlib-users] Can I change placement of X-Axis?

2008-02-04 Thread Mark Bakker
John - My version of mpl (0.90.1) only has a function ax.xaxis.get_ticklocs(), not ax.xaxis.get_majorticklocs(). New feature? Mark On Feb 2, 2008 10:27 PM, John Hunter wrote: > Send Matplotlib-users mailing list submissions to >[email protected] > > To subscribe or un

[Matplotlib-users] dashes and dpi?

2008-02-01 Thread Mark Bakker
Alan - You started a discussion about dpi on the figures. Yet here you claim that 1pt = 1/72 inch. Is that always the case? And why? How does mpl figure that out, if there are also different dpi settings? The plot thickens... Mark > Alan Isaac wrote: > Note: 1pt = 1/72 inch > > hth, > Alan Is

Re: [Matplotlib-users] multiline mlath text

2008-01-18 Thread Mark Bakker
Rather than using eqnarray, I like to use the simple split: \begin{equation}\begin{split} &A=1 \\ &B=1 \end{split}\end{equation} Although this may actually be part of the AMSMath package. Mark > > > -- > > Message: 4 > Date: Thu, 17 Jan 2008 09:29:43 -0500 > From

Re: [Matplotlib-users] labeling contours with roman numerals

2007-12-14 Thread Mark Bakker
EMAIL PROTECTED]> wrote: > I've seen this, but I'm not clever enough to see how to extend that to > multiple levels - after all, I don't want to label every line with the same > string... > --Mike > On Dec 14, 2007, at 3:20 PM, Mark Bakker wrote: > > Michael -

Re: [Matplotlib-users] labeling contours with roman numerals

2007-12-14 Thread Mark Bakker
Michael - This trick for replacing contour labels with a string was posted a little while back (by someone else):* * class FormatFaker(object): def __init__(self, str): self.str = str def __mod__(self, stuff): return self.str A=arange(100).reshape(10,10) CS=contour(A,[50,]) CS.clabel(fmt=F

[Matplotlib-users] new location of home.ppm

2007-12-12 Thread Mark Bakker
Hello - It seems that in the latest version (0.9.1) the location of the images, such as home.ppm, has moved to a new directory. It used to be in ...\mpl-data and now it is in ...\mpl-data\images This totally breaks my code, as I use my own toolbar that uses these images, with a hardcoded location

[Matplotlib-users] Installation of Python/mpl/numpy/scipy/Ipython for students

2007-11-24 Thread Mark Bakker
A question was posted a week or so ago on the scipy list about installing Python/mpl/numpy/scipy/Ipython by David Arnold (both Windows and Mac). He was interested in a simple install for students (and others that are less computer-savy). We had a little off-list correspondence, but thought to bring

Re: [Matplotlib-users] After saving in GUI, how can I get the oo-interface?

2007-11-24 Thread Mark Bakker
> > Arnar > > On Nov 23, 2007 9:00 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > > Arnar - > > > > I presume you are using Tk. > > This is a known bug under Tk, that is apparently difficult to solve. > > John Hunter looked into it a year back or so, but

Re: [Matplotlib-users] After saving in GUI, how can I get the oo-interface?

2007-11-23 Thread Mark Bakker
Arnar - I presume you are using Tk. This is a known bug under Tk, that is apparently difficult to solve. John Hunter looked into it a year back or so, but couldn't find help from Tk experts that may know the solution. Oddly enough, I have written my own GUI in Tk, where I modified the toolbar, and

Re: [Matplotlib-users] saving figures

2007-11-16 Thread Mark Bakker
Erik - You write that adding a 'save' is difficult. I can see it is involved, but don't quite see how it is specifically difficult. The way I see it, every item that is added to a figure needs a method to write itself to a file. So you loop through all lines, polygons, and such, and write them to

[Matplotlib-users] inconsistency in LineCollection

2007-10-31 Thread Mark Bakker
Hello - I got confused about specifying colors and linewidths for LineCollections. I think it would be helpful if the docstrings explicitly state that they should be sequences. I know, they do in some way, but it i Maybe we should even check this on input, as the error message you get when you don

[Matplotlib-users] How to control space between ylabel and yaxis (Was: how to control space between ylabel and yticklabel?)

2007-09-21 Thread Mark Bakker
I think LABELPAD is the padding between the label and the tick. What I would like to control is the distance between the label and the y-axis itself. This is desired when you do multiple subplots and you want all ylabels to align nicely; they may differ depending on the numbers along the yticks. A

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-05 Thread Mark Bakker
y apps or not. I am not doing > scientific plots, just fairly simple graphs, though I may throw some > regression lines and r values on there at some point. > > I really just want to keep things as simple as possible, and if I don't > need to use pylab, I'd rather not. Any

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Mark Bakker
Maybe this will get you going: import pylab as p import datetime as d from matplotlib.dates import DateFormatter t = [ d.datetime (2007,9,1,12), d.datetime(2007,9,2,12), d.datetime(2007,9,3,12) ] t = p.date2num(t) p.plot_date( t, [10,20,30] ) p.xticks(t) y = DateFormatter('%Y-%m-%d') p.gca().xaxis

Re: [Matplotlib-users] plotting images side by side

2007-08-21 Thread Mark Bakker
s odd. Still would like to know what interpolation option you used. Thanks, Mark On 8/21/07, Mark Bakker <[EMAIL PROTECTED]> wrote: > > I use TkAgg on win32, and saw the line on screen and in png and eps files. > I tried nudging it, but that didn't work either. > So I tried the

Re: [Matplotlib-users] plotting images side by side

2007-08-21 Thread Mark Bakker
ring <[EMAIL PROTECTED]> wrote: > > Mark, > > What backend? I don't see it when I run your lines in ipython -pylab, > with gtkagg in use (linux). > > Have you tried using floating point extents and fudging them very > slightly to overlap? > > Eric > > M

[Matplotlib-users] plotting images side by side

2007-08-21 Thread Mark Bakker
Hello all - I am trying to plot two images side byside. The problem is that I get a white line between them. Even when the extent of the two images are exactly next to eachother. Does anybody know how to get rid of the white line? Here's an easy example: from pylab import * a = ones((10,10)) imsh

[Matplotlib-users] question on the use of annotate

2007-07-12 Thread Mark Bakker
Hello, I never noticed the 'annotate' option in pylab. I have been trying unsuccesfully to get it to work. I am working in interactive mode and get the following error. Thanks for any help, Mark plot([1,2,3]) annotate( 'Mark', (1,2), (1,2.5) ) Traceback (most recent call last): File "", li

  1   2   >