Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80

2010-07-29 Thread PHobson
Whoops. That didn't stick like I thought it would. Try here: http://pastebin.com/rJtUuWne -paul From: Paul Hobson Sent: Thursday, July 29, 2010 5:46 PM To: Waléria Antunes David; matplotlib-users@lists.sourceforge.net Subject: RE: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80 I su

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80

2010-07-29 Thread PHobson
I submitted a correction to the code in your pastebin link below. Revisit the link (http://pastebin.com/vSbkXDzE) and run that code. -paul - From: Waléria Antunes David [mailto:waleriantu...@gmail.com] Sent: Thursday, July 29, 2010 12:08 PM To: matplotlib-users@lists.sourc

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread PHobson
Replace this line: ax.plot(f/1000, Sserie) With this line: ax.plot(f/1000.0, Sserie) And tell us how things go. Python 2.6 distinguishes between integers and floats very strictly. Hence: In [1]: 20/1000 Out[1]: 0 In [2]: 20.0/1000.0 Out[2]: 0.02 See the difference? -paul From: Waléria Ant

Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3?

2010-06-25 Thread PHobson
Success! (well, the import worked) Christoph, thanks so much for the link, it is awesome! It can't be said enough that this is an awesome project and I'm so glad and thankful that it exists. > -Original Message- > From: Christoph Gohlke [mailto:cgoh...@uci.edu] > Sent: Friday, June 25, 2

Re: [Matplotlib-users] basemap broken with matplotlib 0.99.3?

2010-06-25 Thread PHobson
Bill, Unfortunately, I don't have a solution for you. I just wanted to chime in and say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1, sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge. -paul > -Original Message- > From: Bill Eaton [mailto:e.

Re: [Matplotlib-users] how to define custom colormap from set of RGB values ?

2010-06-16 Thread PHobson
You're not defining your dictionary in the way specified in the link. In fact, I don't think you have a dictionary at all. "First, create a script that will map the range (0,1) to values in the RGB spectrum. In this dictionary, you will have a series of tuples for each color 'red', 'green', and

Re: [Matplotlib-users] how to define custom colormap from set of RGB values ?

2010-06-16 Thread PHobson
Give this a shot: http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps From: Jim Vickroy [mailto:jim.vick...@noaa.gov] Sent: Wednesday, June 16, 2010 8:14 AM To: Matplotlib Subject: [Matplotlib-users] how to define custom colormap from set of RGB values ? Hello, The attached script shows my

Re: [Matplotlib-users] leading whitespace in text

2010-06-03 Thread PHobson
> -Original Message- > From: Christoph Gohlke [mailto:cgoh...@uci.edu] > Sent: Sunday, May 30, 2010 3:41 PM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] leading whitespace in text > > Hello, > > consider the following simple code: > > import matplotlib > fro

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread PHobson
Do the "sharex" and "sharey" kwargs help? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.axes http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.html -paul From: Adam Fraser [mailto:adam.n.fra...@gmail.com] Sent: Thursday, May 27, 2010 10:44 AM To:

Re: [Matplotlib-users] qqplot

2010-05-21 Thread PHobson
Thierry, You need either scipy or rpy2 (and R) to do this. I've attached some code below. Please keep in mind that I've written for the general case of having a censored data set, therefore I rely on masked arrays from numpy.ma and scipy.stats.mstats -- but I have apply the mask midway through

Re: [Matplotlib-users] hist question...

2010-05-18 Thread PHobson
Nick, Check out this demo on the MPL website: http://matplotlib.sourceforge.net/examples/api/histogram_demo.html This line in particular: n, bins, patches = ax.hist(x, 50, normed=...) The variables 'n' and 'bins' can be fed into ax.bar() later on. I could swear that this was clear from the docs

Re: [Matplotlib-users] introducing mpl_toolkits.gridspec

2010-05-11 Thread PHobson
> -Original Message- > From: Jae-Joon Lee [mailto:lee.j.j...@gmail.com] > Sent: Tuesday, May 11, 2010 8:58 AM > To: Matplotlib Users > Subject: [Matplotlib-users] introducing mpl_toolkits.gridspec > > Hi, > > gridspec is a module that implements matplotlib’s Subplot slightly > differentl

Re: [Matplotlib-users] How to set constant y-axis scale value

2010-04-29 Thread PHobson
> -Original Message- > From: melons [mailto:xic...@cc.hut.fi] > Sent: Wednesday, April 28, 2010 5:14 AM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] How to set constant y-axis scale value > > > Hello, > > I am quite new in matplotlib, I am now facing a quite

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread PHobson
Gökhan, I like to use png files at 300dpi. I’m stuck using MS Word 2007 at work, and that’s what works best in my experience. If MS ever starts to support svg files… -paul h. From: Gökhan Sever [mailto:gokhanse...@gmail.com] Sent: Tuesday, April 27, 2010 8:53 AM To: Matplotlib Users Subject: [M

Re: [Matplotlib-users] How to show last value on the line

2010-03-31 Thread PHobson
From: Omer Khalid [mailto:omer.kha...@cern.ch] Sent: Wednesday, March 31, 2010 6:14 AM To: Matplotlib Users Subject: [Matplotlib-users] How to show last value on the line Hi, I have produced number of charts in my research thesis. On any given chart, there are number of lines. I would like to

Re: [Matplotlib-users] How to show separate legend for each subplot

2010-03-31 Thread PHobson
From: Omer Khalid [mailto:omer.kha...@cern.ch] Sent: Wednesday, March 31, 2010 6:20 AM To: Matplotlib Users Subject: [Matplotlib-users] How to show separate legend for each subplot Hi, I am wondering is there a way one could show a separate legend for each subplot in a figure? I would really r

Re: [Matplotlib-users] where's superpack?

2010-03-25 Thread PHobson
How up-to-date is Macports? This is a reasonable approximation of how I got my OX 10.6 machine set up: http://newmediaandcapitalmarkets.org/component/content/article/68-how-i-got-matplotlib-working-on-my-macbook.html > -Original Message- > From: Christopher Barker [mailto:chris.bar...@noa

Re: [Matplotlib-users] axis aspect ratio

2010-03-15 Thread PHobson
Give this a shot: import matplotlib.pyplot as plt fig = pl.figure(figsize=(4,4)) ax = fig.add_sublot(1,1,1) # tweak as needed # [plot your data] ax.set_aspect(‘equal’) http://matplotlib.sourceforge.net/api/axes_api.html?highlight=set_aspect#matplotlib.axes.Axes.set_aspect From: tomislav_ma...@gm

Re: [Matplotlib-users] Making tick marks of a secondary axis line up with the primary axis

2010-03-10 Thread PHobson
> -Original Message- > From: Alex S [mailto:schmitt.happ...@gmail.com] > Hi there, > I'm trying to make a plot with two y axes. I'm able to do that no > problem, > but what I'd really like to do now is make the tick marks line up for > them > both so that they both use the same grid. Is

Re: [Matplotlib-users] Change the size of the plotted 'o's ?

2010-02-26 Thread PHobson
> -Original Message- > From: mikey [mailto:abc.mi...@googlemail.com] > Sent: Friday, February 26, 2010 4:29 PM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Change the size of the plotted 'o's ? > > Hi there, > > I've just made script for displaying discrete d

Re: [Matplotlib-users] boxplot bug

2010-02-23 Thread PHobson
# ~~~ From: Ben Axelrod [mailto:baxel...@coroware.com] Sent: Tuesday, February 23, 2010 9:31 AM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] boxplot bug I found an inconsistency with how boxplots are rendered between version 0.99.1 and the svn head.  Se

Re: [Matplotlib-users] Help needed on specific plot

2010-02-19 Thread PHobson
Whoops. Give this one a shot: http://dpaste.com/161847/ > -Original Message- > From: Paul Hobson > Sent: Friday, February 19, 2010 2:54 PM > To: matplot...@liste.fastmail.fm; matplotlib-users@lists.sourceforge.net > Subject: RE: [Matplotlib-users] Help needed on specific plot > > Hugo, >

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-17 Thread PHobson
> On Tue, Feb 16, 2010 at 9:53 PM, John Hunter wrote: > > I think it means that Darren, who did most of the heavy lifting for > > these features, was getting tired of the endless line of additional > > things TeX users wanted to do and the difficulties supporting these > > across all platforms (eg

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread PHobson
> -Original Message- > From: Ernest Adrogué [mailto:eadro...@gmx.net] > Sent: Tuesday, February 16, 2010 1:58 PM > To: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] DateFormatter + Latex issue > > 16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernan

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-15 Thread PHobson
TJ, I think this current implementation and adding a marker rotation key word would be wonderful. When I get stuck doing GIS work, I end up using split markers very often. It's quite useful. Now's probably not the time, but maybe dividing the markers up into 2, 3, or 4 sections would be useful

Re: [Matplotlib-users] LateX Legend (again)

2010-02-10 Thread PHobson
Jeff, I send all of my figures through LaTeX and don't have this problem. The only thing I can think of is to check your matplotlibrc file and make sure you've set the legend font to be the same size as the other fonts. HTH, -paul h. > -Original Message- > From: Jeffrey Blackburne [mai

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread PHobson
Ted, How does this example run for you? http://matplotlib.sourceforge.net/examples/pylab_examples/griddata_demo.html From: Ted Kord [mailto:teddy.k...@googlemail.com] Sent: Monday, February 08, 2010 12:00 PM To: Paul Hobson Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread PHobson
Hey Ted, I don't quite understand how you're getting the Z data below. But if you have 3D data in X, Y, and Z 1D-arrays, the griddata function should work for you. http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata HTH, -paul - Fro

[Matplotlib-users] Error build from SVN on Windows XP

2010-01-20 Thread PHobson
Whenever I try to build from source, I get an error saying that it can't find vcvarsall.bat. Here are the last few lines of the output from DOS: copying lib\pytz\zoneinfo\US\Pacific -> build\lib.win32-2.6\pytz\zoneinfo\US copying lib\pytz\zoneinfo\US\Pacific-New -> build\lib.win32-2.6\pytz\zoneinf

[Matplotlib-users] Error with dates.DayLocator when specifying timezone?

2010-01-20 Thread PHobson
Hey folks, I'm plotting a simple rainfall record and when I tell the DayLocator to make sure to use 'US/Pacific' as it's time zone, it barfs on me. (US/Pacific is also set in my matplotlibrc file). When I don't specify the time zone, it doesn't barf, but the xticks are placed 8 hours off (presu

Re: [Matplotlib-users] Re using a subplot on two different figures

2010-01-12 Thread PHobson
> -Original Message- > From: dugolo [mailto:mad...@gmail.com] > Sent: Tuesday, January 12, 2010 9:21 AM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Re using a subplot on two different figures > > > I apologize if this has been covered, but I couldn't find

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-12-11 Thread PHobson
Reinier, This in incredible. Wow. Thanks for all of your hard work. Cheers, -paul > -Original Message- > From: Reinier Heeres [mailto:rein...@heeres.eu] > Sent: Thursday, December 10, 2009 3:37 PM > To: Matthias Michler > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplot

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread PHobson
Third Google result for "copy paste in DOS prompt" http://www.copy--paste.org/copy-paste-between-dos-windows.htm Note that right-clicking is going to execute behavior, not bring up a contextual menu. -p > -Original Message- > From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net] > Se

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-06 Thread PHobson
Wayne, Are you using the IPython shell? If so, cd, pwd, ls, etc will work just fine. If you using the standard python shell, AFAIK, you need to import the os module and use that to navigate. Ipython session: C:\Documents and Settings\phobson>ipython Python 2.6.2 (r262:71605, Apr 14 2009, 22

[Matplotlib-users] Rotating X-Labels on AxesGrid?

2009-12-04 Thread PHobson
Hey folks, I'm trying to make some bar plots using AxesGrid and the set_xlabels method doesn't seem to notice that I'm passing a 'rotation' kwarg. Here's a small script that showing that this doesn't work: # -- import matplotlib.pyplot as pl from mpl_toolk

Re: [Matplotlib-users] Installing iPython on Win XP

2009-11-30 Thread PHobson
This is indeed a DOS prompt issue. Right-click the very top of the window and go to Properties. Upon exit, select that the changes should be applied to future windows "with the same title." HTH -paul > -Original Message- > From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net] > Sen

Re: [Matplotlib-users] add table to axes

2009-11-23 Thread PHobson
From: Sahar [mailto:sa...@cmt.co.il] Sent: Monday, November 23, 2009 7:20 AM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] add table to axes > Hi, >  > I'm trying to add some notes in a table to a plot, and I don't > know how to use the "'matplotlib.pyplot.table" command

Re: [Matplotlib-users] How do I change where MPL looks for Latex?

2009-11-04 Thread PHobson
> On Wed, Nov 4, 2009 at 11:25 AM, wrote: > > I know support for the usetex feature is limited, but I think > (*hope*) that this is purely an MPL question and not out of the scope > and annoying to the members of the group. > > > > I like to use the fourier.sty package since I like the Utopia fon

[Matplotlib-users] How do I change where MPL looks for Latex?

2009-11-04 Thread PHobson
I know support for the usetex feature is limited, but I think (*hope*) that this is purely an MPL question and not out of the scope and annoying to the members of the group. I like to use the fourier.sty package since I like the Utopia font and it's math font is particularly nice. But MPL is us

Re: [Matplotlib-users] Location matplotlibrc file on my Mac

2009-11-04 Thread PHobson
> -Original Message- > From: Tony S Yu [mailto:ton...@mit.edu] > Sent: Tuesday, November 03, 2009 1:11 PM > To: Paul Hobson > Cc: Matplotlib Users > Subject: Re: [Matplotlib-users] Location matplotlibrc file on my Mac > (Paul, I hope you don't mind if I bring this bump this back to the

Re: [Matplotlib-users] Location matplotlibrc file on my Mac

2009-11-03 Thread PHobson
> On Nov 3, 2009, at 3:08 PM, > > wrote: > > -Original Message- > > From: Tony S Yu [mailto:ton...@mit.edu]> > >> Hi Paul, > >> > >> I think your matplotlibrc file should be put in: > >> /Users/paul/.matplotlib > >> > >> -Tony > > > > Thanks Tony, I'll give that a shot. Shouldn't keeping

[Matplotlib-users] Location matplotlibrc file on my Mac

2009-11-03 Thread PHobson
Hey everyone, The existence of the matplotlibrc file is one reason I like MPL so much. I won't go into the convoluted work flow I had for getting my MATLAB figures completely processed in TeX, but it was nasty. On my Windows machine, I've used it with great success. But I can't get my Mac (OS

Re: [Matplotlib-users] Log scale for horizontal bar chart (2 bugs)

2009-10-14 Thread PHobson
> -Original Message- > From: Donovan Parks [mailto:donovan.pa...@gmail.com] > Sent: Wednesday, October 14, 2009 1:31 PM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Log scale for horizontal bar chart (2 > bugs) > > Hello, > > I've encountered two bugs recentl

Re: [Matplotlib-users] Errors with PDF (TeX-string) output using Qt4Agg

2009-10-12 Thread PHobson
Mike, Thanks for the reply. I found that I had (on a whim) set my mathtext.fontset to stixsans and then forgot about it. Returning that value to cm fixes my issues. In short, I'm all squared away now. Thanks! Paul M. Hobson > -Original Message- > From: Michael Droett

Re: [Matplotlib-users] Errors with PDF (TeX-string) output using Qt4Agg

2009-10-12 Thread PHobson
Jouni, I found the error! I got bored this past weekend and changed my mathtext.fontset to 'stixsans' just to see hopw it would look -- and then forgot about it. Changing that value back to 'cm' let's my original code and pyTest.py run without errors. I really appreciate your help with this an

Re: [Matplotlib-users] Errors with PDF (TeX-string) output using Qt4Agg

2009-10-12 Thread PHobson
Sheesh it's been a weird day. I failed to reply to the whole list. Jouni, sorry about the duplciate message... > writes: > > |C:\Documents and Settings\phobson>ipython26 -pylab > > From: Jouni K. Seppänen [mailto:j...@iki.fi] Could you try this in > plain Pyth

[Matplotlib-users] Errors with PDF (TeX-string) output using Qt4Agg

2009-10-12 Thread PHobson
uments and Settings\phobson>ipython26 -pylab |Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] |Type "copyright", "credits" or "license" for more information. | |IPython 0.10 -- An enhanced Interactive Python. |? -> Introduction

Re: [Matplotlib-users] colorbar tick label fontproperties

2009-09-22 Thread PHobson
John, The following code works for me (Python 2.5.4, Matplotlib 0.99): # create and format the colorbar cbar = pl.colorbar(G, ticks=range(g1,g2+1)) cbar.ax.set_ylabel('Gradient (%)', fontsize=10) cl = pl.getp(cbar.ax, 'ymajorticklabels') pl.setp(cl, fontsize=10) -Paul M. Hobson