Re: [Matplotlib-users] Clabel conflicts with contourf

2014-01-30 Thread Eric Firing
On 2014/01/30 1:10 AM, Alexis Praga wrote: > Hi, > > I've attached a reproducible example : when clabel is used, there are some > empty (i.e white) triangles in the countour. > It does not occur without clabel. Thanks for the report--but clabel is intended to be used only with contour, not with

Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Eric Firing
On 2014/01/29 5:41 AM, A Short wrote: > Is there any work around so it looks like the below image? It looks like with any reasonable contouring algorithm, this would require interpolating into land regions, contouring, and then plotting the land on top. The key is the interpolation, not the plo

Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Eric Firing
On 2014/01/28 11:40 PM, Ian Thomas wrote: > On 29 January 2014 03:21, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 2014/01/28 10:01 AM, A Short wrote: > > Hi - Ive now improved my code and confirmed the use of the right > grib file > &

Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-28 Thread Eric Firing
On 2014/01/28 10:01 AM, A Short wrote: > Hi - Ive now improved my code and confirmed the use of the right grib file > but i cant for the life of me figure out the missing data near the > coastline..? Could anyone help? The present contouring algorithm works with rectangular blocks, and if any cor

Re: [Matplotlib-users] Basemap Plotting on Floating(?) Axes

2014-01-23 Thread Eric Firing
On 2014/01/22 1:51 PM, geo_leeman wrote: > Hello all, > > Several of us have been stumped on how to create a map with basemap that > doesn't have a rectangular bounding box. I've attached an example of what > we are trying to create (done with GMT and not ours). Browsing the docs I > thought it m

Re: [Matplotlib-users] pyplot.plot plotting points in wrong order making loops in the graph display

2014-01-09 Thread Eric Firing
On 2014/01/09 1:57 AM, vargfran wrote: > Dear all > pyplot seems to be plottting(joining points with lines) in the wrong order I > have checked all the algorithms relating the data being plotted and > everything is in order >

Re: [Matplotlib-users] Matplotlib interactive shortcuts?

2014-01-08 Thread Eric Firing
On 2014/01/08 11:40 AM, Skip Montanaro wrote: > Apologies. Gmail (or my fingers) were acting up... > > On Wed, Jan 8, 2014 at 3:39 PM, Skip Montanaro wrote: >> I'm happy with the draggable legends, but I have a problem. It seems >> there are three pointer modes, the initial mode (updates x, y as y

Re: [Matplotlib-users] Color of masked values in pcolor plots

2013-12-01 Thread Eric Firing
On 2013/12/01 5:11 AM, lin.h...@europe.com wrote: > Z = X**2 + Y**2 > Z[(X**2+Y**2 < r**2) | (X**2+Y**2 > R**2)] = np.ma.masked The problem is that Z is not a masked array. Change the first line above to Z = np.ma.array(X**2 + Y**2). Also, use pcolormesh instead of pcolor. Pcolormesh is much f

Re: [Matplotlib-users] Error installing matplotlib

2013-11-18 Thread Eric Firing
On 2013/11/18 1:09 PM, Cristóbal Ganter wrote: > Hi I'm trying to install matplotlib in debian wheezy. But I get the > following error: > GotoBLAS : Architecture Initialization failed. No initialization function > found. > I can't find anything useful in google. Matplotlib doesn't know about blas

Re: [Matplotlib-users] Scatterplot c arg and NaN values, autonomous underwater vehicle

2013-11-13 Thread Eric Firing
On 2013/11/13 11:40 AM, robertdcurrier wrote: > I've pulled my hair out for the past day trying to solve this problem and > have done extensive searches to no avail. Here's my situation: > > I have data from an autonomous underwater vehicle. I have three np arrays to > plot: > 1) time on the x axis

Re: [Matplotlib-users] Maidir le: Maidir le: Memory leak when using pyplot.ion() ?

2013-10-14 Thread Eric Firing
On 2013/10/14 8:26 AM, OCuanachain, Oisin (Oisin) wrote: > > > Hi Eric, > > If .emf is no longer supported in current versions of matplotlib is > there an alternative SVG-type format I can use ? I use .emf because I > find that it tends to produce the clearest plots independent of how I > re-size

Re: [Matplotlib-users] Maidir le: Memory leak when using pyplot.ion() ?

2013-10-14 Thread Eric Firing
On 2013/10/14 7:48 AM, OCuanachain, Oisin (Oisin) wrote: > Hi Mike, > > ion(), ioff() are useful to get immediate feedback when developing a > script, when it is fully debugged I then increase the number of > iterations and leave it running over the weekend. At that point I could > obviously also h

Re: [Matplotlib-users] AttributeError: 'BarContainer' object has no attribute 'autoscale_None'

2013-10-11 Thread Eric Firing
On 2013/10/10 8:52 PM, Nils Wagner wrote: > Hi all, > > I tried to add a colorbar to a bar plot > > coolwarm = cm = plt.get_cmap('coolwarm') > values = range(100) > cNorm = colors.Normalize(vmin=0, vmax=values[-1]) > scalarMap = cmx.ScalarMappable(norm=cNorm, cmap=coolwarm) > colours = [] > for v

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

2013-09-30 Thread Eric Firing
On 2013/09/30 3:45 AM, Mark Bakker wrote: > The design of the function datestr2num, unfortunately, has an undesired > side-effect. > Today (September 30) I cannot convert monthly data, as February doesn't > have 30 days. > Conversion of: > datestr2num('2000-02') > Gives an error: > ValueError: day

Re: [Matplotlib-users] Broken clabel manual=True in 1.3.0

2013-09-29 Thread Eric Firing
On 2013/09/28 11:15 AM, Felix Patzelt wrote: > Dear all, > > manually placing labels when using clabel seems to be broken in Matplotlib > 1.3.0. > > I'm on OS X 10.8.5 and have Matplotlib installed via macports. Today I > updated all installed ports and thereby got the new version of Matplotlib.

Re: [Matplotlib-users] Explicitly clearing Matplotlib/Pylab figure buffers

2013-08-23 Thread Eric Firing
On 2013/08/23 3:55 AM, Kari Aliranta wrote: > Hello, fellow Matplotlib users, > > > I'm embedding some Matplotlib figures into GUI (PyQt4) windows or widget > canvases using qt4agg as the backend. I'm having problems with these > figures popping up any time when some other part of the program calls

Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread Eric Firing
On 2013/08/12 8:35 PM, vwf wrote: > Thank you for you reply. I tried to create one after the other but when > I did this my second plot was on top of the first one. The old plot > needs to be "flushed" before starting the second one. > > This doesn't work: > import matplotlib.pyplot as plt > a=plt.

Re: [Matplotlib-users] ion() is not working

2013-08-08 Thread Eric Firing
On 2013/08/08 12:33 AM, bruno.pace wrote: > Hey all! > > I have been using interactive mode inside classes for a long time, but now > I'm just trying to use it in a Shell (idle or even in terminal) and it's not > working. > > I try even simple stuff like: > > import matplotlib.pyplot as plt > > plt

Re: [Matplotlib-users] Importing pyplot blocks input thread

2013-08-06 Thread Eric Firing
On 2013/08/06 10:08 AM, John McFarland wrote: > I am trying to write some code that uses an input thread to check for user > input while another thread is running some calculations (see example below). > What I have noticed is that just including an import of pyplot (regardless > of whether it is u

Re: [Matplotlib-users] Failed pip install on OSX

2013-08-05 Thread Eric Firing
On 2013/08/05 10:43 AM, Matthew Brett wrote: > If Matplotlib is only expected to work for the Quartz installs - is it > worth trying to detect that and warn / error at install time? Logically, XQuartz should not be needed at all; mpl on the mac does not require X11. It looks like XQuartz is an a

Re: [Matplotlib-users] Update legend when lines change color?

2013-08-02 Thread Eric Firing
On 2013/08/02 8:55 AM, Drain, Theodore R (392P) wrote: > Thanks - we'll look into that. We might also see how hard it would > be to implement an update or refresh method on the legend that could > be called when the lines change to keep the legend in sync. Seems > like the legend should own that

Re: [Matplotlib-users] Update legend when lines change color?

2013-08-01 Thread Eric Firing
On 2013/08/01 4:23 PM, Drain, Theodore R (392P) wrote: > I have an application where the user can edit line colors and other > attributes after the plot is drawn. The artists update just fine but the > legend doesn't change. > >>From what I can see in the legend code, it doesn't seem like there

Re: [Matplotlib-users] Pdf File sizes on newer versions of matplotlib is a lot larger

2013-07-30 Thread Eric Firing
On 2013/07/29 9:17 PM, Jeffrey Spencer wrote: > I have three different versions of matplotlib that all output different > file sizes with matplotlib 1.1.1 providing the smallest. This is for the > same exact script. I can post the script if that helps. > > MPL 1.4.x: 539.32kb, Ubuntu 12.10 > MPL 1.

Re: [Matplotlib-users] numpy masked array plot - isolated single unmasked value is hidden

2013-07-18 Thread Eric Firing
On 2013/07/17 11:25 PM, Gregorio Bastardo wrote: > Thanks Mike, it's hard to spot, but still better than nothing. Anyway, > could it be the default behaviour of plotting masked arrays (single > pixel for an isolated element)? Gregorio, I don't think this would be a good idea. It adds quite a bit

Re: [Matplotlib-users] cbook.report_memory IOError

2013-07-16 Thread Eric Firing
On 2013/07/16 5:50 PM, K.-Michael Aye wrote: > Hi! > > I have just run an old code that I believe was working before on OSX. > I am trying this with matplotlib 1.2.1 on an OSX EPD running Python 2.7.3 It works for me with OSX Mountain Lion and mpl 1.2.1 compiled from source. I don't think this

Re: [Matplotlib-users] time axis format

2013-06-11 Thread Eric Firing
2 vmin, vmax = self.axis.get_view_interval() > 533 return num2date(vmin, self.tz), num2date(vmax, self.tz) > 534 > > AttributeError: 'NoneType' object has no attribute 'get_view_interva > > > > From: Eric Firing > > To: matplotli

Re: [Matplotlib-users] time axis format

2013-06-11 Thread Eric Firing
On 2013/06/10 6:16 PM, Sudheer Joseph wrote: > Thank you Eric and CM, > I have the below piece of code and added the new definition for minorLocs, > but gets the below error. I believe I did not fully understand the concept > you mentioned. > The concept is "subclassing": writing a class that "i

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Eric Firing
On 2013/06/10 2:08 PM, Sudheer Joseph wrote: > > Thank you, > So there is no way to get J F M A etc with out reducing font size? We > often need to make presentation in front of senior people who insist for > bigger fonts. > With best regards, > Sudheer One way is to subclass DateFormatter, e.g.,

Re: [Matplotlib-users] Problem setting clim for subplots

2013-06-07 Thread Eric Firing
Julien, See https://github.com/matplotlib/matplotlib/pull/2119 for a proposed fix. Eric -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. D

Re: [Matplotlib-users] Problem setting clim for subplots

2013-06-06 Thread Eric Firing
On 2013/06/06 2:08 AM, Julien Cornebise wrote: > Dear all > > I am puzzled: in the following code, when I call clim() *after* having > created 3 subplots, only the last subplot takes the new limits into > account. All other subplots ignore it. Xlim(), on the countrary, works > as intended. Everythi

Re: [Matplotlib-users] Problem setting clim for subplots

2013-06-06 Thread Eric Firing
On 2013/06/06 2:08 AM, Julien Cornebise wrote: > Dear all > > I am puzzled: in the following code, when I call clim() *after* having > created 3 subplots, only the last subplot takes the new limits into > account. All other subplots ignore it. Xlim(), on the countrary, works > as intended. Everythi

Re: [Matplotlib-users] font for errorbar plot

2013-05-30 Thread Eric Firing
On 2013/05/30 3:42 PM, Paul Hobson wrote: > > > > On Thu, May 30, 2013 at 6:28 PM, Sudheer Joseph > mailto:sudheer.jos...@yahoo.com>> wrote: > > Dear Users, > Is there a way to set font size of error bar plot > axis? I tried below one but get error that "'ErrorbarContai

Re: [Matplotlib-users] Memory usage when plotting sequental figures

2013-05-28 Thread Eric Firing
On 2013/05/27 9:51 PM, zetah wrote: > Hi, > > if I use something like this: > > == > import numpy as np > import matplotlib.pyplot as plt > > def draw_fig(arr, fn): > fig = plt.figure() > ax = fig.add_subplot(111) > ax.contourf(arr) >

Re: [Matplotlib-users] help plotting vector field in basemap

2013-04-08 Thread Eric Firing
On 2013/04/08 4:13 AM, epi wrote: > Hi All, > > i'm new to basemap, truing to learn how to plot vector from a netcdf file > > the variables in my file are : > > - time > - Significant_height_of_combined_wind_waves_and_swell_surface > - u-component_of_wind_surface > - v-component_of_wind_surface > >

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Eric Firing
On 2013/03/28 11:04 AM, Jody Klymak wrote: > > On Mar 28, 2013, at 11:51 AM, Eric Firing wrote: > >> Pay attention only to the listed keyword arguments above that table. > > Sounds good > > OTOH a clim argument for pcolormesh would be nice, as I often end up callin

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Eric Firing
t; > On Mar 28, 2013, at 11:12 AM, Eric Firing wrote: > >> On 2013/03/28 7:56 AM, Jody Klymak wrote: >>> >>> Hi all, >>> >>> In 1.2.0: >>> >>> pcolormesh(x,z,U,rasterized='True',cmap=cm.RdBu_r,clim=(-1.,1.)) >> >>

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Eric Firing
On 2013/03/28 7:56 AM, Jody Klymak wrote: > > Hi all, > > In 1.2.0: > > pcolormesh(x,z,U,rasterized='True',cmap=cm.RdBu_r,clim=(-1.,1.)) Jody, There is no clim kwarg, only a clim pyplot function. You can do this, though: pcolormesh(..., vmin=-1, vmax=1) Eric > #clim((-1.,1.)) > > Doesn't se

Re: [Matplotlib-users] set limits not obeyed for stacked plots when set_aspect('equal') used

2013-03-20 Thread Eric Firing
On 2013/03/20 3:16 PM, Brendan Barnwell wrote: > On 2013-03-20 14:25, Eric Firing wrote: >> On 2013/03/20 8:57 AM, Jonathan Slavin wrote: >>> Hi all, >>> >>> I've run across a minor but annoying bug. It can be demonstrated pretty >>> simply: >

Re: [Matplotlib-users] set limits not obeyed for stacked plots when set_aspect('equal') used

2013-03-20 Thread Eric Firing
On 2013/03/20 8:57 AM, Jonathan Slavin wrote: > Hi all, > > I've run across a minor but annoying bug. It can be demonstrated pretty > simply: > > fig, ax = plt.subplots(2,1,sharex=True,figsize=(7.,7.)) > fig.subplots_adjust(hspace=0.0) > x = 4.25*(np.arange(6.) - 2.5)/10. > y = 0.6*x/max(x) > ax[

Re: [Matplotlib-users] matching axes lengths after calls to "set_aspect" and "colorbar"

2013-03-07 Thread Eric Firing
On 2013/03/07 12:24 PM, Jody Klymak wrote: > Hi All, > > I want to have two axes have the same xlimits and the same length of the x > axis. However, I'd also like for the first axis to be plotted at a certain > aspect ratio (its geographic if anyone is interested). > > The following two tries do

Re: [Matplotlib-users] Memory use of multiple plots on single axes

2013-03-07 Thread Eric Firing
On 2013/03/07 9:50 AM, Giovanni Plantageneto wrote: > Hi everybody, I am running out of memory while doing something like this: > > F= figure() > AX= F.add_subplot(111) > MyClass.plot(axes=AX) > F.show() > > MyClass.plot(axes=AX) then does something like this: > ... > for i in xrange(100): > s

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Eric Firing
On 2013/03/07 9:19 AM, Benjamin Root wrote: > > > On Thu, Mar 7, 2013 at 2:14 PM, Brickle Macho > wrote: > > I have a list of surface normals I would like to plot. Is there a way > to plot a 3D vectors in matplotlib similar to how quiver plots 2D > vecto

Re: [Matplotlib-users] FigureCanvasWxAgg: Printer_Preview(...) and Printer_Print(...) cause crashes

2013-02-13 Thread Eric Firing
On 2013/02/13 5:58 AM, mameghani wrote: > Hi, ist the example > > http://matplotlib.org/examples/user_interfaces/printing_in_wx.html > > still supposed to work? I am using Python 2.7.3 win32 on XP, wxPython > 2.8.12.1 and Matplotlib 1.2.0 - and the example crashes every time I either > try to print

Re: [Matplotlib-users] CMYK

2013-01-30 Thread Eric Firing
backends. I suspect that the alpha channel will make this quite complicated, much more so than a simple mapping; it will require an intermediate rendering step. Eric > > Cheers, > > Paul > > On Wed, Jan 30, 2013 at 6:38 PM, Eric Firing wrote: >> On 2013/01/30 6:43 AM

Re: [Matplotlib-users] CMYK

2013-01-30 Thread Eric Firing
On 2013/01/30 6:43 AM, Michael Droettboom wrote: > We don't currently have any support -- and we're still struggling in > certain areas supporting RGBA consistently across the system. > > I think this would take someone writing a MEP (as a preliminary study of > all of the changes that would be inv

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Eric Firing
On 2013/01/26 7:59 PM, Todamont wrote: Ok, here is the distilled code that displays the scientific formatting failure I'm trying to fix. I had to wait until the market gave me a snapshot that triggered this bug. Here is a quick link to the image I get when I run this program: http://imgur.com/77D

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Eric Firing
On 2013/01/26 5:33 PM, Todamont wrote: > This is the relevant code: Thanks, but what would really help is not what you think is the relevant code, but a completely self-contained *minimal* script, so that I can run it as-is, then modify it (probably only slightly), and return the modified versi

Re: [Matplotlib-users] Matplotlib INSISTS on using scientific notation, how do I make it STOP!?

2013-01-26 Thread Eric Firing
On 2013/01/26 5:16 PM, Todamont wrote: > I'm charting financial data, so scientific notation is unwanted in ALL cases. > Sometimes if I pass it data with just a few trades right near each other, it > scales so the y-axis get set to some bizare exponent, like 1.7321e1. By the > way, why would anyone

Re: [Matplotlib-users] ImportError: No module named _backend_gdk on fedora16 after upgrading to 1.2.0

2013-01-25 Thread Eric Firing
On 2013/01/24 5:36 AM, Benjamin Root wrote: > > > On Thu, Jan 24, 2013 at 10:13 AM, Chao YUE > wrote: > > Dear all, > > I upgrade my matplotlib from 1.1.1 to 1.2.0 using the command: > > sudo pip-python install --upgrade matplotlib > > it completes succ

Re: [Matplotlib-users] dash length for dashed contours

2013-01-24 Thread Eric Firing
On 2013/01/22 11:50 PM, Andrew Dawson wrote: > Hi all, > > [TL;DR: is it possible to control the length of the dashes in dashed > contours, if so how?] > > I'd like to be able to control the length of dashes for dashed contours. > My motivation is that I'm making a contour plot that uses dashes for

Re: [Matplotlib-users] pcolor problem

2013-01-20 Thread Eric Firing
7;,Y.dtype() > TypeError: 'numpy.dtype' object is not callable > > > print 'y.shape',Y.shape() > TypeError: 'tuple' object is not callable > > type data > data.dtype > > print 'data.dtype',reshaped.dtype() >

Re: [Matplotlib-users] pcolor problem

2013-01-19 Thread Eric Firing
On 2013/01/19 3:59 AM, burak nebioğlu wrote: > Hello everone, > > I am trying to use pcolor from pylab but I can't get it work. As you > know signature of pcolor for Matlab is pcolor(x,y,data) which x and y > are vectors. When I try pcolor(data) > > it works but it is not what I want. Because witho

Re: [Matplotlib-users] Basemap: adding a polygon covers up scatter plot on map

2012-12-11 Thread Eric Firing
re all less than 4. So I just picked that as a value that would do the job. Eric > > Tim > > > On Tue, Dec 11, 2012 at 4:35 PM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 2012/12/11 12:16 PM, Timothy Duly wrote: > > Hi, > > >

Re: [Matplotlib-users] Basemap: adding a polygon covers up scatter plot on map

2012-12-11 Thread Eric Firing
On 2012/12/11 12:16 PM, Timothy Duly wrote: > Hi, > > I'm running into a problem with overlaying a scatter plot on a polygon > that is on a Basemap. The polygon covers up the scatter plot created by > the basemap. To show the issue, the simple example below and broken > down into three steps: 1)

Re: [Matplotlib-users] "N" parameter of LinearSegmentedColormap

2012-11-26 Thread Eric Firing
On 2012/11/26 12:18 PM, TP wrote: > On Monday, November 26, 2012 12:06:40 Eric Firing wrote: >> I'm glad you found a solution, but my sense is that the problem is that >> you are trying to make the colormap do the work of the norm. The >> colormap is just a set of disc

Re: [Matplotlib-users] "N" parameter of LinearSegmentedColormap

2012-11-26 Thread Eric Firing
On 2012/11/26 11:37 AM, TP wrote: > On Thursday, November 22, 2012 23:51:08 TP wrote: >> Thus it seems to me that my dummy example given in the previous post covers >> exactly the problem encountered in my real-world imshow function. >> >> Is there a memory-efficient workaround in my dummy example

Re: [Matplotlib-users] "N" parameter of LinearSegmentedColormap

2012-11-19 Thread Eric Firing
On 2012/11/19 11:42 AM, TP wrote: > Hi everybody, > > I have a problem with LinearSegmentedColormap. > In the example below (see PS), I make a colormap, and use it to plot an > EllipseCollection. My plot is parameterized by a quantity that I have named > "large_value". For large_value equal to 257,

Re: [Matplotlib-users] rasterized colorbar

2012-10-30 Thread Eric Firing
On 2012/10/29 2:00 PM, Mike Kaufman wrote: > On 10/29/12 1:08 PM, Jody Klymak wrote: >> >> On Oct 28, 2012, at 17:47 PM, Eric Firing wrote: >>> >>> cb = colorbar() >>> cb.solids.set_rasterized(True) >> >> >> Great! Though I think it

Re: [Matplotlib-users] rasterized colorbar

2012-10-28 Thread Eric Firing
On 2012/10/26 6:00 PM, Jody Klymak wrote: > > Hi all, > > So I figured out the magic of "rasterized=True", which is *really* > helpful! > > However, the colorbar doesn't seem to accept rasterized=True, so > there are little lines every facet (zoom on the attached pdf). Is > there another way to ge

Re: [Matplotlib-users] can't find pygtk

2012-10-18 Thread Eric Firing
On 2012/10/18 8:54 AM, Michael Aye wrote: > On 2012-10-18 05:58:46 +0000, Eric Firing said: > >> On 2012/10/17 6:13 PM, Michael Aye wrote: >>> I am using matplotlib 1.1.0 that came with the current EPD, which in >>> turn comes without pygtk. >>> >>&

Re: [Matplotlib-users] can't find pygtk

2012-10-17 Thread Eric Firing
On 2012/10/17 6:13 PM, Michael Aye wrote: > I am using matplotlib 1.1.0 that came with the current EPD, which in > turn comes without pygtk. > > However, the linux system I am using this on (CentOS6) has pygtk installed: > > /usr/lib64/pygtk/2.0 > > Is there any change I can marry those two? Curren

Re: [Matplotlib-users] default backend on 1.2.0rc1 and master

2012-10-17 Thread Eric Firing
On 2012/10/16 9:22 PM, Francesco Montesano wrote: > Dear list, > > I've see a difference between the default backend between > > v1.1.1 (shipped with kubuntu 12.10dev) and v1.2.0.rc1, 1.2.0rc2 and > master (1.3.x). > > > My set up is to call ipython with pylab and turn on interactive mode. I > stil

Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-16 Thread Eric Firing
On 2012/10/16 4:27 PM, Gökhan Sever wrote: > Hello, > > I see that a few days old clone of mpl, cannot save open symbols > correctly in a pdf file. > > Here is a simple test case (in ipython --pylab): > > I6 xx = np.random.random(1000) > > I7 plt.plot(xx, 'D', mfc='none') > > On screen open symbols

Re: [Matplotlib-users] installating matplotlib in mac 10.7.4 for python 2.6

2012-10-14 Thread Eric Firing
On 2012/10/13 6:41 PM, lulu wrote: > oh brother -- so now I've got to deal w/ Apple... I don't see what Apple has to do with it. > okay thanks. > > here's where I am. > > I've downloaded matplotlib, numpy, python 2.7.3, xcode and macports to > simply plot this oh-so-simple code! > Which is: > > C

Re: [Matplotlib-users] installating matplotlib in mac 10.7.4 for python 2.6

2012-10-13 Thread Eric Firing
On 2012/10/13 6:11 PM, lulu wrote: > okay - thanks... > so I did THAT - but am prompted for a password. > I assumed the password would be my administrator, but it isn't. > Where would I find that? Sudo is prompting you for your user password. Depending on how your machine was set up, you mig

Re: [Matplotlib-users] installating matplotlib in mac 10.7.4 for python 2.6

2012-10-13 Thread Eric Firing
On 2012/10/13 6:03 PM, lulu wrote: > Okay -- > I opened terminal, typed 'python' to being, then typed: There's the problem: don't type "python" to begin, just type the lines below directly in the terminal window. Eric > sudo port install py26-python > sudo port install py26-matplotlib > > I rec

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-11 Thread Eric Firing
On 2012/10/10 3:07 AM, Anand Sivaramakrishnan wrote: > Thanks for the many useful responses - I eventuallyfound by experiment > that imshow( interpolation='nearest' works *if* I write a png file. > Saving a pdf file mushed up my crisp pixel boundaries. However, saving > as png, then using (mac os

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-09 Thread Eric Firing
On 2012/10/09 4:46 PM, Mike Kaufman wrote: > On 10/9/12 10:03 PM, Jody Klymak wrote: >> Hi Eric, >> >>>The pcolormesh docstring notes that it is >>> much faster than pcolor; the pcolor docstring probably should refer >>> people to pcolormesh, since matlab users are likely to go straight to >>>

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Eric Firing
string probably should refer people to pcolormesh, since matlab users are likely to go straight to pcolor without realizing that they should be using pcolormesh. (For linear axes, the pcolorfast axes method can be even faster, but it does not support log axes at present.) Eric > > Chee

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Eric Firing
On 2012/10/08 7:55 AM, Jianbao Tao wrote: > Hi all, > > A little background: I am from the space physics field where a lot of > people watch/analyze satellite data for a living. This is a field > currently dominated by IDL in terms of visualization/analysis software. > I was a happy IDL user until

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Eric Firing
On 2012/10/03 8:11 AM, Charleux Ludovic wrote: > Thanks for your multiple answers. I'll try the same manipulation with > the 1.2 version as soon as possible. Concerning the debate between the > use of None and numpy.nan, I tryed both methods before posting and they > both lead to the same bug on my

Re: [Matplotlib-users] Bug when zooming on multiple lines separated by None

2012-10-03 Thread Eric Firing
On 2012/10/03 4:24 AM, Charleux Ludovic wrote: > Hello, > > I want to plot multiple lines using matplotlib.pyplot.plot using the > None separator: when i zoom or plot lines that go far away from the axis > limits, they their direction is changed. I encounter a bug shown by the > folowing code: > >

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-02 Thread Eric Firing
On 2012/10/02 9:21 AM, Michael Aye wrote: >>> >> How nice of you to ask! ;) >> Indeed: I had the case that image arrays inside an ImageGrid where >> shown with some white overhead area around, e.g. for an image of 100 >> pixels on the x-axis, the imshow resulted in an x-axis that went f

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-02 Thread Eric Firing
On 2012/10/02 9:11 AM, Damon McDougall wrote: > On Tue, Oct 2, 2012 at 8:07 PM, K.-Michael Aye wrote: >> >> On Oct 2, 2012, at 12:06 PM, Damon McDougall >> wrote: >> >>> On Tue, Oct 2, 2012 at 8:00 PM, K.-Michael Aye >>> wrote: On Oct 2, 2012, at 11:09 AM, Damon McDougall wrot

Re: [Matplotlib-users] How to modify the navigation toolbar easily in a matplotlib figure window?

2012-10-02 Thread Eric Firing
On 2012/10/02 8:08 AM, Jianbao Tao wrote: > Is it possible to do something like the following to modify the > navigation toolbar in matplotlib? > > 1. Generate a figure window, such as by *fig = figure()* > 2. Get a reference of the navigation toolbar, such as by *tbar = > fig.get_navigation_

Re: [Matplotlib-users] X Window System error

2012-10-02 Thread Eric Firing
e that many pixels of width. Eric > > > > On Tue, Oct 2, 2012 at 4:04 PM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 2012/10/01 7:28 PM, Mic wrote: > > Hi, > > > > I have got the following error with the following co

Re: [Matplotlib-users] X Window System error

2012-10-01 Thread Eric Firing
On 2012/10/01 7:28 PM, Mic wrote: > Hi, > > I have got the following error with the following code: > /$ python mpl.py/ > /Traceback (most recent call last):/ > / File > "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gtk.py", > line 398, in expose_event/ > /self._render_figure

Re: [Matplotlib-users] static linking

2012-09-28 Thread Eric Firing
On 2012/09/28 3:40 PM, Rita wrote: > Whenever I use matplot lib its asking me for libpng and when I do > LD_LIBRARY_PATH it works. Is there a way I can compile matplotlib so I > can avoid doing an export LD_LIBRARY_PATH ? Normally one doesn't need it, so I don't know why you do need it. You migh

Re: [Matplotlib-users] resolution on plotting for "retina" displays?

2012-09-25 Thread Eric Firing
On 2012/09/25 9:23 AM, Damon McDougall wrote: > On Tue, Sep 25, 2012 at 8:09 PM, Benjamin Root wrote: >> >> >> On Tue, Sep 25, 2012 at 8:53 AM, mdekauwe wrote: >>> >>> I tried your suggestions...the first one (Qt4Agg) resulted in an error >>> (below) so it looks like I am missing some packages an

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Eric Firing
On 2012/09/23 9:27 AM, Benjamin Root wrote: > > > On Sunday, September 23, 2012, Giovanni Plantageneto wrote: > > Hi everybody, > sorry, I guess the question is trivial, but I confess my matplotlib > and python ignorance. > > I'm running some code written by someone else, and appare

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Eric Firing
On 2012/09/23 9:45 AM, Giovanni Plantageneto wrote: > One of the suggestions I got works: > >> Maybe this: > >> self.ax.get_figure().clf() >> self.ax.get_figure().add_axes(self.ax) This seems a bit dangerous, because logically, even if does not presently do so, the clf() call could remove the fig

Re: [Matplotlib-users] Updating quiver arrows in animation

2012-09-22 Thread Eric Firing
On 2012/09/22 3:03 AM, reckoner wrote: > Hi, > > I have a plot that includes arrows drawn by the quiver command. I would > like to create animation using Func Animation, but I don't know how to > update the quiver arrows. I can update everything else on the plot and > animates fine. > > Does anybod

Re: [Matplotlib-users] overwriting suptitle?

2012-09-16 Thread Eric Firing
On 2012/09/16 8:54 AM, Benjamin Root wrote: > > > On Sun, Sep 16, 2012 at 2:09 PM, Skipper Seabold > wrote: > > Is there a way to overwrite suptitle? When using 3rd party libs that > return a figure, if they set suptitle and don't give you the text > object

Re: [Matplotlib-users] overwriting suptitle?

2012-09-16 Thread Eric Firing
On 2012/09/16 8:54 AM, Benjamin Root wrote: > > > On Sun, Sep 16, 2012 at 2:09 PM, Skipper Seabold > wrote: > > Is there a way to overwrite suptitle? When using 3rd party libs that > return a figure, if they set suptitle and don't give you the text > object

Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Eric Firing
On 2012/09/14 10:15 AM, Benjamin Root wrote: > > > On Fri, Sep 14, 2012 at 3:50 PM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 2012/09/14 9:00 AM, Benjamin Root wrote: > > tricontourf() might be more what you are looking for. Another >

Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Eric Firing
On 2012/09/14 9:00 AM, Benjamin Root wrote: > tricontourf() might be more what you are looking for. Another > possibility is pcolor() (note that for irregularly spaced grids, > pcolormesh() would not work). Huh? I don't think there is anything pcolor can handle that pcolormesh can't handle faste

Re: [Matplotlib-users] Saving figure instance for reuse

2012-09-09 Thread Eric Firing
On 2012/09/09 8:50 AM, Benjamin Root wrote: > > > On Wed, Aug 15, 2012 at 5:40 AM, Jesper Larsen > wrote: > > Hi Matplotlib users > > I have an application where performance is critical and matplotlib is > the performance bottleneck. I am making a lot o

Re: [Matplotlib-users] python question from matlab user

2012-09-09 Thread Eric Firing
On 2012/09/08 5:34 PM, Jody Klymak wrote: > >> >> This is one of the big differences between python and matlab: in >> matlab, if an m-file has changed within a session, the change is >> immediately effective. The python "import" statement is very >> different. > > Gotchya, thanks. > > So, while I'm

Re: [Matplotlib-users] python question from matlab user

2012-09-08 Thread Eric Firing
On 2012/09/08 3:50 AM, Jody Klymak wrote: > Ack, OK, to answer my own question... > > Somehow ipython was caching the definition of jmkfigure, so changing the > module in the jmkfigure.py file did not actually change the version > ipython was using. Running a new version of ipython, it worked fine.

Re: [Matplotlib-users] python question from matlab user

2012-09-08 Thread Eric Firing
On 2012/09/07 7:52 PM, Paul Tremblay wrote: > in your jmkfile.py you should have > > from pylab import * Or to be more pythonic, import only what you actually need in a given module, e.g., from matplotlib import rc Eric > > Paul > > > > On 9/8/12 12:45 AM, Jody Klymak wrote: >> Hi All, >> >

Re: [Matplotlib-users] MemoryError with NetCDF

2012-09-07 Thread Eric Firing
On 2012/09/07 4:00 AM, Benjamin Root wrote: > > > On Fri, Sep 7, 2012 at 9:49 AM, Shahar Shani-Kadmiel > mailto:kadm...@post.bgu.ac.il>> wrote: > > On Sep 7, 2012, at 4:25 PM, Benjamin Root wrote: > >> >> >> On Fri, Sep 7, 2012 at 8:44 AM, Shahar Shani-Kadmiel >> mailto:kadm...@post.bgu

Re: [Matplotlib-users] Rectangle Bug

2012-09-07 Thread Eric Firing
but I think a single warning in Artist.add_axes would do it, perhaps at the cost of generating an unnecessary warning for some legitimate use case. Eric > > > > On 7 September 2012 07:42, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 2012/09/06 8:35 PM, jonas

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread Eric Firing
On 2012/09/06 8:35 PM, jonasr wrote: > That seems to work, thank you. > > I would have thought that the add_patch function creates two seperate > objects independent of the defined Rectangle. add_patch doesn't create any objects; it just attaches the axes to the patch in both directions: a refere

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Eric Firing
ut > # all dates except the first date for each month > newax.plot_date(months, y, visible=False) > newax.xaxis.set_major_locator( > matplotlib.dates.MonthLocator() > ) > newax.xaxis.set_major_formatter( > matplotlib.dates.DateFormatter('%b') > ) > >

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Eric Firing
On 2012/09/05 4:04 PM, Paul Tremblay wrote: > I am using numpy 1.7, which I built myself (python3 setup.py build). I > had a chance to look a bit deeper into matplotlib, which in turn forced > me to learn a bit of numpy, and now I see that it probably makes more > sense to use numpy arrays for my d

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Eric Firing
On 2012/09/04 9:09 AM, Benjamin Root wrote: > > > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay > wrote: > > > The following Python code: > > >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) > > Produces this error with Python 3.2: >

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Eric Firing
On 2012/09/04 9:09 AM, Benjamin Root wrote: > > > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay > wrote: > > > The following Python code: > > >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) > > Produces this error with Python 3.2: >

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Eric Firing
On 2012/09/03 9:36 PM, Jakob Gager wrote: > On 09/04/2012 09:13 AM, Eric Firing wrote: >> On 2012/09/03 8:33 PM, Jakob Gager wrote: >>> On 09/03/2012 08:57 PM, Eric Firing wrote: >>>> It looks like you can either use the _get_layout() method (which >>>> r

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Eric Firing
On 2012/09/03 8:33 PM, Jakob Gager wrote: > On 09/03/2012 08:57 PM, Eric Firing wrote: >> It looks like you can either use the _get_layout() method (which >> requires that you specify the renderer), or, if you know the text object >> will be among the last 50 for which _

Re: [Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Eric Firing
On 2012/09/03 1:38 AM, Jakob Gager wrote: > Recently, I switched from matplotlib 0.99 to 1.0.1 and unfortunately > discovered > that my text scaling script stopped working properly. The script scales the > given text > to fit into the current figure. > > A quick example of what I'm doing (works i

<    1   2   3   4   5   6   7   8   9   10   >