Re: [Matplotlib-users] Confused/frustrated w/ waitforbuttonpress

2010-08-07 Thread Eric Firing
On 08/05/2010 10:54 PM, Jorge Scandaliaris wrote: > Hi, > Looking for a way to analyze a set of images I found waitforbuttonpress, which > basically does what I need: allows me to display a few plots/scatter/etc for > as > long as I need; then when pressing a key move to the next image and redo al

Re: [Matplotlib-users] Confused/frustrated w/ waitforbuttonpress

2010-08-07 Thread Eric Firing
On 08/07/2010 11:44 AM, Jorge Scandaliaris wrote: > Eric Firing writes: >> Running mpl from svn, with gtkagg backend, on ubuntu, but with ipython >> 0.11alpha1, I can't reproduce the problem; your example works for me. I >> suspect the difference is that ipytho

Re: [Matplotlib-users] Unable to make sequential calls to functions with create matplotlib graphs ... second gets jumbled

2010-08-08 Thread Eric Firing
On 08/08/2010 12:53 AM, Rob Schneider wrote: > Running 0.98.5.3 > (would upgrade to 1.0 but having trouble installing it on Mac OS X as it > doesn't appear to like the version of Python Apple provides). > Standard procedure on the Mac is to install the python from python.org. That way you don't

Re: [Matplotlib-users] Fatal Python Error with 64 bit versions

2010-08-10 Thread Eric Firing
On 08/10/2010 09:10 AM, Christoph Gohlke wrote: > > > On 8/10/2010 11:53 AM, stetrick wrote: >> >> Should probably indicate that it is the MKV versions >> >> >> stetrick wrote: >>> >>> >>> >>> Christoph Gohlke wrote: On 8/9/2010 3:09 PM, stetrick wrote: > > I am now gett

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Eric Firing
On 08/10/2010 05:43 PM, Ryan Krauss wrote: > I just upgraded my windows machine to matplotlib 1.0.0 and a simple > script such as > > from pylab import * > from scipy import * > > t = arange(0,1,0.01) > y = sin(2*pi*t) > > figure(1) > clf() > plot(t,y) > > show() > > Now halts execution when run fr

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
On 08/11/2010 06:13 AM, tgabriel wrote: > > > Problem 1: I have a dataset which has more values on one side of the scale > than the other in a contour map. Matplotlib will see that I have more values > towards one side of the scale, and put all of the colors in that color map > to that side of the

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
On 08/11/2010 08:54 AM, Friedrich Romstedt wrote: > 2010/8/11 tgabriel: >> I would like to have the colorbar displaying the same color scaling >> regardless of the data input. > > This /should/ be feasible with .contourf(.., vmin=VMIN, vmax=VMAX), > but from the doc this isn't clear at least. If i

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
> > Maybe the OP's problem is that the colors become indistinguishable in > the relatively small intervals? If so, the answer is to use a different > norm, or to use a ListedColormap with a color for each interval. The > ListedColormap allows complete freedom to explicitly specify the color > fo

Re: [Matplotlib-users] Issue with hist plotting

2010-08-14 Thread Eric Firing
On 08/14/2010 04:47 AM, Daπid wrote: > Hello. > > I have had an issue trying to plot an histogram with Matplotlib. The line is: > > plt.hist([SNIa.angles, SNIbc.angles, SNII.angles], 11, range=[-pi, pi], > normed=True,histtype='stepfilled',color=['g', 'r', > 'b'],alpha=[1, 0.6, 1]) The p

Re: [Matplotlib-users] 1.1.0 changes: bug in YAxis.set_ticks_position; new show() behavior

2010-08-16 Thread Eric Firing
On 08/16/2010 06:44 AM, Toby Burnett wrote: > It is good to know that both issues have been recognized and addressed. > I searched the bug list and I guess failed to use the right keyword, or > just didn’t recognize the title. > > However, I am not in need of help, and certainly would not do a comp

Re: [Matplotlib-users] grid lines at specific coordinates

2010-08-19 Thread Eric Firing
On 08/19/2010 01:20 PM, Benjamin Root wrote: > On Thu, Aug 19, 2010 at 5:05 PM, Bala subramanian > mailto:bala.biophys...@gmail.com>> wrote: > > Friends, > > I would like to place grid lines (precisely draw lines) at specific > (x,y) coordinates. If i am not wrong, grid() function will

Re: [Matplotlib-users] MPL = Location of new figure on desktop

2010-08-20 Thread Eric Firing
On 08/20/2010 05:24 AM, Benjamin Root wrote: > > > On Fri, Aug 20, 2010 at 10:12 AM, Ryan May > wrote: > > On Fri, Aug 20, 2010 at 9:41 AM, Benjamin Root > wrote: > > One possibility for this behavior might be that you might be > d

Re: [Matplotlib-users] how do label with matshow

2010-08-20 Thread Eric Firing
On 08/20/2010 12:38 AM, Patricia wrote: > > > Hi all, > > I start using matplotlib a month ago, so I'm still learning. > I'm trying to do a heatmap with matshow. My code is the following: > > data = numpy.array(a).reshape(4, 4) > cax = ax.matshow(data, interpolation='nearest', cmap=cm.get_cmap('PuB

Re: [Matplotlib-users] Colorbar labeling

2010-08-20 Thread Eric Firing
On 08/20/2010 05:29 AM, Bruce Ford wrote: > I have a grid with values ranging from exactly 0.0 and 100.0. When I > plot this with colorbar, the base of the colorbar is labeled "-0.0". > Is this a default for 0.0...to plot it with as a negative number? Any > workarounds? Would you provide a minim

Re: [Matplotlib-users] Colorbar labeling

2010-08-20 Thread Eric Firing
On 08/20/2010 10:14 AM, Bruce Ford wrote: > This effect is happening within an web app that displays gridded > fields from multiple datasets (~4500 lines of code). So I it's tricky > to create an example. Although if I use numpy.min(grid) the minimum > is 0. So, I think colorbar or matplotlib is

Re: [Matplotlib-users] Colorbar labeling

2010-08-20 Thread Eric Firing
796-8101 > Fax: (904) 379-9704 > 8241 Parkridge Circle N. > Jacksonville, FL 32211 > Skype: bruce.w.ford > > --- > To schedule a meeting with Bruce, Go to: http://tungle.me/bruceford > -------- > > >

Re: [Matplotlib-users] Setting y-tick locations on an image plot changes y-axis limits, Bug or expected behavior?

2010-08-21 Thread Eric Firing
On 08/20/2010 12:18 PM, Joe Kington wrote: > Hi, > > I've recently noticed that setting the y-tick locations on an image plot > changes the y-axis limits, while changing the x-tick locations does not > change the x-axis limits. I wouldn't have expected either to change the > axis limits, but it se

Re: [Matplotlib-users] Setting y-tick locations on an image plot changes y-axis limits, Bug or expected behavior?

2010-08-21 Thread Eric Firing
On 08/20/2010 12:18 PM, Joe Kington wrote: > Hi, > > I've recently noticed that setting the y-tick locations on an image plot > changes the y-axis limits, while changing the x-tick locations does not > change the x-axis limits. I wouldn't have expected either to change the > axis limits, but it se

Re: [Matplotlib-users] Issue with hist plotting

2010-08-22 Thread Eric Firing
On 08/22/2010 04:51 AM, Daπid wrote: > On Sat, Aug 14, 2010 at 10:19 PM, Eric Firing wrote: >> The problem is that the "alpha" kwarg can never be other than a scalar >> in mpl at present, as far as I know. The error message from to_rgba was >> intended to be info

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Eric Firing
On 08/26/2010 05:49 AM, Benjamin Root wrote: > On Thu, Aug 26, 2010 at 9:39 AM, Daπid > wrote: > > Image Magick and Inkscape seem to work for this. Probably the first > one is easier to automatize in batch processing. > > > Quick warning about ImageMagick and

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Eric Firing
On 08/27/2010 07:15 AM, Ryan May wrote: > On Thu, Aug 26, 2010 at 2:24 PM, Ben Edwards wrote: >> Hello, I've used matplotlib for a while but never had cause to ask a >> question until now. I am trying to add a patch to an axis, but would like >> the patch to remain the same size when, interactivel

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-27 Thread Eric Firing
On 08/27/2010 05:43 PM, Benjamin Root wrote: > On Fri, Aug 27, 2010 at 10:17 PM, Chiara Caronna > mailto:chiaracaro...@hotmail.com>> wrote: > > Ok, it is a backend issue: > I checked and I was using Qt4Agg > as soon as I changed to TkAgg the script worked fine... > still is this nor

Re: [Matplotlib-users] realtime plotting was working with matplotlib 0.99.1.1 and it doesn't with matplotlib 1.0.0

2010-08-28 Thread Eric Firing
On 08/27/2010 05:17 PM, Chiara Caronna wrote: > Ok, it is a backend issue: > I checked and I was using Qt4Agg > as soon as I changed to TkAgg the script worked fine... > still is this normal or is it a bug? > thanks for your suggestion and help! Chiara, As a workaround for Qt4Agg, you can follow

Re: [Matplotlib-users] problems with autoscale_view

2010-08-29 Thread Eric Firing
On 08/28/2010 06:40 PM, xyz wrote: > Hello, > If I use autoscale_view than: > * plt.text appears outside x and y coordinates > * and the coordinates starts do not from 0 whereas I use ax.set_xlim(0) > and ax.set_ylim(0) > > What did I wrong? The call to autoscale_view overrides the earlier calls t

Re: [Matplotlib-users] How to get all data points plotted/displayed in a line plot

2010-09-02 Thread Eric Firing
Mike, Using svn trunk, I see exactly the problem Jens is talking about. Maybe there is still a bug in the path simplification? If I try to plot after turning simplification off, I don't get any image at all, so I can't immediately say whether the problem is in the simplification. To reproduc

Re: [Matplotlib-users] DreamPie (a new Python shell) and matplotlib

2010-09-03 Thread Eric Firing
On 09/02/2010 07:47 PM, Noam Yorav-Raphael wrote: > Hello, > > I'm the developer of DreamPie, a new graphical Python shell (you can > check it out at http://dreampie.sourceforge.net ) > > I worked to make it work nicely with matplotlib -- it runs Tk/GTK/Qt > event loops when idle, so if matplotlib

Re: [Matplotlib-users] How to get all data points plotted/displayed in a line plot

2010-09-03 Thread Eric Firing
On 08/31/2010 01:08 AM, Jens Nie wrote: > Hi everyone. > I face a problem here, which I can’t seem to handle by myself, so any > help is really appreciated. > I would like to do a simple line plot of a huge dataset as an overview > to quickly compare success of different measurement scenarios, and

Re: [Matplotlib-users] draw after set_data

2010-09-08 Thread Eric Firing
On 09/07/2010 07:33 PM, Philippe Crave wrote: > hi, > > sorry to bring this up again. > style haven't found how to draw my plot faster than > self.fig.canvas.draw(), after a set_data() If you need to change the scale of the plot when you update the data, then I don't see any alternative to redoin

Re: [Matplotlib-users] Multiple tick labels

2010-09-10 Thread Eric Firing
On 09/10/2010 10:54 AM, Brian Larsen wrote: > Hello all, > > I feel like this is possible but I am having trouble figuring it out. > > I want to put extra labels on the ticks on the xaxis like in the upper > panel of the figure > http://sprg.ssl.berkeley.edu/fast/graphics/socfig1.gif > > Following

Re: [Matplotlib-users] weird behaviour in x axis

2010-09-13 Thread Eric Firing
On 09/11/2010 11:12 AM, freekk wrote: > > Im trying to do a very simple x vs y plot. Where the x values range between > 3247 and 3256 and y between 0 and 1. This data is stored in data.dat. I plot > it using the code below, the resulting plot is shown in the first of the two > plots below. Ever

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-13 Thread Eric Firing
On 09/13/2010 12:08 PM, Virgil Stokes wrote: On 2010-09-13 21:55, Benjamin Root wrote: On Mon, Sep 13, 2010 at 2:38 PM, Virgil Stokes mailto:v...@it.uu.se>> wrote: I have tried to produce a very simple plot with my recent installation of matplotlib (1.0.0 64-bit) and numpy (1.5.0 64-b

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-14 Thread Eric Firing
On 09/13/2010 04:46 PM, jules hummon wrote: > Virgil > > The scheme illustrated below actually does work. > >> Message: 5 >> Date: Mon, 13 Sep 2010 12:55:43 -1000 >> From: Eric Firing >> Subject: Re: [Matplotlib-users] matplotlib on Ubuntu 10

Re: [Matplotlib-users] matplotlib on Ubuntu 10.04 (64-bit)

2010-09-14 Thread Eric Firing
On 09/13/2010 12:55 PM, Eric Firing wrote: > If you would like up-to-date versions of both numpy and matplotlib, then > you can either find and install the *dev packages individually, or do > something like this: > > sudo apt-get build-dep python-matplotlib > sudo apt-get re

Re: [Matplotlib-users] problem building matplotlib

2010-09-15 Thread Eric Firing
On 09/14/2010 01:36 PM, Dan Kortschak wrote: > Hello, > > I just tried to have just tried to build matplotlib, but it fails - and > is unable to find wxPython (looking under 2.8 rather than 2.6 where is > lives - installed from source) or libgtk-2 headers (installed from apt > repo). > > Can anyone

Re: [Matplotlib-users] problem building matplotlib

2010-09-15 Thread Eric Firing
On 09/15/2010 03:50 AM, Benjamin Root wrote: > On Wed, Sep 15, 2010 at 5:34 AM, Dan Kortschak > mailto:dan.kortsc...@adelaide.edu.au>> > wrote: > > I've just has a look at that and unfortunately it does not fix the > problem > > Is there any other suggestion that might be worth a try? >

Re: [Matplotlib-users] weird behaviour in x axis

2010-09-15 Thread Eric Firing
On 09/15/2010 04:55 AM, Benjamin Root wrote: > On Tue, Sep 14, 2010 at 11:12 AM, Jan Skowron > wrote: > > Hi, > apropos this offset discussion. > matplotlib makes offsets not aligned to the full tens or some other > easy number with small amount of non

Re: [Matplotlib-users] weird behaviour in x axis

2010-09-15 Thread Eric Firing
On 09/15/2010 08:25 AM, Benjamin Root wrote: > On Wed, Sep 15, 2010 at 12:37 PM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 09/15/2010 04:55 AM, Benjamin Root wrote: > > On Tue, Sep 14, 2010 at 11:12 AM, Jan Skowron > m

Re: [Matplotlib-users] problem building matplotlib

2010-09-15 Thread Eric Firing
On 09/15/2010 01:17 PM, Dan Kortschak wrote: > That fixes the problem. > > thanks > > On Wed, 2010-09-15 at 07:30 -1000, Eric Firing wrote: > >> Looking again at the original build output, and at setup.py and >> setupext.py, it appears that there is a bug in the latte

Re: [Matplotlib-users] another incorrectly clipped PNG in the gallery

2010-09-22 Thread Eric Firing
On 09/22/2010 10:11 AM, Russell Owen wrote: > On Sep 22, 2010, at 11:16 AM, Benjamin Root wrote: > >> On Wed, Sep 22, 2010 at 12:04 PM, Russell E. Owen > > wrote: >> >> In article <4c935c08.1000...@gmail.com >> >, >> Alan G Isaac m

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Eric Firing
On 09/26/2010 09:43 PM, Fernando Perez wrote: > Mmh, > > On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Lee wrote: >> >> Did you try autoscale_view method? >> >> http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view >> >> Please post a sample scrip

Re: [Matplotlib-users] errorbar plot requires hold=True

2010-09-30 Thread Eric Firing
On 09/30/2010 08:28 AM, Joey Richards wrote: > When I use the errorbar() routine to plot data, unless I set hold=True as a > kwarg (or set it globally), the data are plotted without the errorbars. I > believe it is because the routine first plots the error bars, then overplots > the data points

Re: [Matplotlib-users] errorbar plot requires hold=True

2010-10-03 Thread Eric Firing
On 09/30/2010 08:28 AM, Joey Richards wrote: > When I use the errorbar() routine to plot data, unless I set hold=True as a > kwarg (or set it globally), the data are plotted without the errorbars. I > believe it is because the routine first plots the error bars, then overplots > the data points

Re: [Matplotlib-users] Problem with show()

2010-10-05 Thread Eric Firing
On 10/05/2010 01:00 PM, Jorge Scandaliaris wrote: > Hi, > Today I tried to run some code in my new notebook, but I only got blank > figures > and high CPU usage as a result. This code did run on my previous laptop. I can > reproduce this behavior with the following code at the bottom of this messa

Re: [Matplotlib-users] confused about behavior inside and outside ipython

2010-10-07 Thread Eric Firing
On 10/06/2010 06:18 PM, Collin Day wrote: > I have googled around and looked through the documents, but I can't > seem to find a description of the difference between running a script > inside and outside ipython (using ipython --pylab). For example, I > tried doing the following in a script and m

Re: [Matplotlib-users] Events not registering in FigureCanvasWxAgg

2010-10-07 Thread Eric Firing
On 10/07/2010 07:11 PM, Åke Kullenberg wrote: > I am using Python 2.7 and Matplotlib 1.0.0 and I am having problems > getting events triggering in this example below. I have taken the > draggable rectangle example (with blit) code from the event handling > documentation > (http://matplotlib.sourcef

Re: [Matplotlib-users] Ticks Size

2010-10-18 Thread Eric Firing
On 10/18/2010 09:42 AM, Gökhan Sever wrote: > On Mon, Oct 18, 2010 at 12:46 PM, Ted Kord wrote: >> Hi >> >> How do I make the tick size bigger as in thicker/bolder? >> >> matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker. >> >> Ted > > I[1]: plt.plot(range(100)) > O[1]: [] > >

Re: [Matplotlib-users] weird range value in the colorbar, matplotlib

2010-10-20 Thread Eric Firing
On 10/19/2010 05:44 AM, vaishu wrote: > > Hey guys, > > I am a new user to the python& matplotlib, this might be a simple question > but I searched the internet for hours and couldn't find a solution for this. > > I am plotting precipitation data from which is in the NetCDF format. What I > find w

Re: [Matplotlib-users] range in the colorbar

2010-10-21 Thread Eric Firing
On 10/20/2010 11:41 PM, Alexander Dietz wrote: > Hi, > > I am generating a scatter plot with a colorbar, and want to pass on the > colorbar to some function to do something with it, like > > plt.scatter(px, py, c=pz, ...) > cb = plt.colorbar() > foo(cb) > > > My question: How can I extract the rang

Re: [Matplotlib-users] reverse axis on colorbar, and showing under- and over-colors

2010-10-26 Thread Eric Firing
On 10/26/2010 04:50 AM, Maarten Sneep wrote: > Hi, > > I did solve my own question. For posterity, and perhaps for a more > elegant solution, I post my solution here. > > On Tue, 2010-10-26 at 10:56 +0200, Maarten Sneep wrote: > >> I have an image with cloud pressures, 1000 at the surface, 200 at t

Re: [Matplotlib-users] Trouble with contour plot

2010-10-29 Thread Eric Firing
> I don't know if there are any strict requirement on monotonicity for X > and Y, or if there are any cases where the plot is still valid even if > that property is violated. If it is a requirement, then I agree that > there should be a check. For sensible output, it is a requirement. Contour a

Re: [Matplotlib-users] show(), the state of the art

2010-11-02 Thread Eric Firing
On 11/02/2010 04:39 AM, Alan G Isaac wrote: On 11/2/2010 10:06 AM, Benjamin Root wrote: I have personally seen significant progress in this area, but there are a few backends that aren't quite right (MacOSX backend, I believe?). I believe multiple uses of ``show`` fail and are expected to fa

Re: [Matplotlib-users] Ticks direction

2010-11-02 Thread Eric Firing
On 11/02/2010 03:18 PM, Jae-Joon Lee wrote: > A quick (and not safe) way w/ mpl v1.0 is, > > ax = plt.subplot(111) > ax.plot(np.arange(3)) > > ax.set_xticks([0, 0.5, 1., 1.5, 2.]) > > mytick = ax.xaxis.majorTicks[2] > mytick._apply_params(tickdir="out") > > I don't think th

Re: [Matplotlib-users] Unsightly white space in contour plots

2010-11-03 Thread Eric Firing
On 11/03/2010 09:01 AM, jgamble wrote: > > Hi all, > > I'm trying to visualize some data using countourf in pyplot, and I am having > a bit of trouble. For some reason, the y axis does not scale properly, and > an ugly white bar appears where there are no pixels to plot (see > screenshot). Ideally,

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Eric Firing
On 11/13/2010 06:16 AM, Michiel de Hoon wrote: > --- On Sat, 11/13/10, John Hunter wrote: >> Ie if we have a script like >> >># some plotting commands >>... >> >># some expensive non GUI computation >>... >> >># some update to plot above >>... >> >> Would we not run the ris

Re: [Matplotlib-users] Weird white stripes when using matplotlib.pyplot countourf

2010-11-17 Thread Eric Firing
On 11/17/2010 07:35 AM, Ognjen Ilic wrote: > Hello all, > > I posted about this problem on another forum (with an image attachment) > http://python-forum.org/pythonforum/viewtopic.php?f=18&t=21951&p=99290#p99290 > > In the figure below white space that forms a trapezoid to the right > (slope then c

Re: [Matplotlib-users] Weird white stripes when using matplotlib.pyplot countourf

2010-11-17 Thread Eric Firing
simplification. If so, your only option is to update mpl itself. It should be possible to build and install a local copy without root access, and put its location in your PYTHONPATH. Eric > > > On Wed, Nov 17, 2010 at 1:20 PM, Eric Firing wrote: >> On 11/17/2010 07:35 AM, Ognjen I

Re: [Matplotlib-users] controlling the aspect of contour/contourf

2010-11-20 Thread Eric Firing
On 11/20/2010 09:05 PM, Garry Willgoose wrote: > I want to control the ratio of the size of the x and y axes of contour/ > contourf() plot (in the same way that 'aspect' lets me control > imgshow()). Is there any way to do this? Yes, use the set_aspect() method of the Axes object: http://matplotl

Re: [Matplotlib-users] Axis line width and label problem

2010-11-21 Thread Eric Firing
On 11/21/2010 11:21 AM, Tommy Grav wrote: > I have two questions: > > 1. Is there a way to increase the line width of the axes? I have figured out > how to do it > with the tick marks, but not the axes themselves. for s in ax.spines.values(): s.set_linewidth(5) > > 2. When adding a label

Re: [Matplotlib-users] Possible memory leak?

2010-11-22 Thread Eric Firing
On 11/22/2010 06:15 AM, Benjamin Root wrote: > On Fri, Nov 19, 2010 at 3:14 PM, Caleb Constantine > mailto:cadamant...@gmail.com>> wrote: > > On Thu, Nov 18, 2010 at 4:50 PM, Benjamin Root > wrote: > > > > Caleb, > > > > Interesting analysis. On

Re: [Matplotlib-users] caveats found installing matplotlib from svn source on python 2.7 in mac os x Leopard

2011-01-03 Thread Eric Firing
On 01/02/2011 05:40 PM, Tom K. wrote: > [...] > FOURIER DEMO - PROBLEM AND FIX IN "lines.py" > Next I tried my wx-based gui http://wiki.wxpython.org/MatplotlibFourierDemo. > It raised assertions in lines.py, particularly the part where it tries to > access > path, affine = > self._transfor

Re: [Matplotlib-users] stripes in the colorbar

2011-01-12 Thread Eric Firing
On 01/12/2011 06:58 AM, Benjamin Root wrote: > On Wed, Jan 12, 2011 at 2:28 AM, Daniel Mader > > wrote: > > Hi, > > the same happens with "regular" colorbars, too. Me, too, I didn't > always have this issue but I can't tell when exactly it was >

Re: [Matplotlib-users] Fwd: malloc error on show() oder x/ylabel()

2011-01-12 Thread Eric Firing
On 01/12/2011 07:11 AM, Hannes Kutza wrote: > Because of import- and compatibility issues I build everything from > scetch some days ago. Now i only have one Python (2.7.1) installation > and only one matplotlib version (1.0.1). In the > //Library/Frameworks/Python.framework/Versions/2.7/lib/python

Re: [Matplotlib-users] colorbar with Axes3D for a set of collections?

2011-01-13 Thread Eric Firing
On 01/13/2011 01:40 PM, Daniel Mader wrote: > Hi, > > I am trying to plot a set of simulation results of FEM simulations. > With a lot of help from Ben I can plot the deformed shape quite nicely > but I have trouble in applying a colorbar to the plot. > > In the attached file there are three result

Re: [Matplotlib-users] colorbar with Axes3D for a set of collections?

2011-01-14 Thread Eric Firing
On 01/14/2011 02:02 AM, Daniel Mader wrote: Hi Eric, thanks for your feedback, it helped a lot! I have some questions left, see below. 2011/1/14 Eric Firing: Quick thoughts with no testing or concrete examples: 1) Don't set the cmap or norm for the colorbar; let it inherit those prope

Re: [Matplotlib-users] script for redoing a large number of plots?

2011-01-15 Thread Eric Firing
On 01/15/2011 09:35 AM, Daniel Mader wrote: > Hi, > > for my thesis I have a large number of plots generated > by--again--a laaarge number of Python scripts. > > Now I need a moderate font size for all of them for the thesis while > for a presentation and poster it needs to be much bigger.

Re: [Matplotlib-users] ColorbarBase usage

2011-01-17 Thread Eric Firing
On 01/17/2011 05:42 AM, Bala subramanian wrote: > Friends, > I have created a figure (with two rows and two columns) and i drew four > contourf plots (A,B,C,D etc). All the four contourf has the same > coloring and bounds. I do not want to draw a colorbar() for each of the > plots separately but on

Re: [Matplotlib-users] Contour/Contourf dynamically with slider

2011-01-18 Thread Eric Firing
On 01/17/2011 10:24 PM, sprobst wrote: > > Hi all, > > I want to make a contout plot with a slider element. But I am not sure if it > is possible at all and if it is possible how. With contouring, you have to simply remake the ContourSet (that is, re-run contour) with any change to the data being

Re: [Matplotlib-users] Suggestions for auto scaling fonts , etc for producing images at various scales

2011-01-21 Thread Eric Firing
On 01/21/2011 11:42 AM, Daryl Herzmann wrote: > Greetings matplotlib users, > > Firstly, thank you so much for a great python plotting library. I use > it daily and find the library very intuitive :) My question deals > with generating raster images at multiple scales without heavy code > modific

Re: [Matplotlib-users] a break in the y-axis

2011-01-22 Thread Eric Firing
On 01/22/2011 05:16 PM, Paul Ivanov wrote: > Paul Ivanov, on 2011-01-22 18:28, wrote: >> Ilya Shlyakhter, on 2011-01-22 19:06, wrote: >>> Is it possible to create a "break" in the y-axis so that it has ticks >>> for value 0-.2, then ticks for values .8-1.0, but devotes only a token >>> amount of

Re: [Matplotlib-users] a break in the y-axis

2011-01-24 Thread Eric Firing
On 01/23/2011 11:46 PM, Paul Ivanov wrote: [...] > Done in r8935, see examples/pylab_examples/broken_axis.py > Thank you. > I documented the above, used deterministic fake data, as Eric > suggested, and added the diagonal cut lines that usually > accompany a broken axis. Here's the tail end of th

Re: [Matplotlib-users] Defining a precise x-axis max in plot()

2011-01-24 Thread Eric Firing
On 01/24/2011 02:49 PM, Lionel (Lee) Brooks 3rd wrote: > Hello Gentlepeople, > > I am plotting an integer array using: matplotlib.pyplot.plot(). > For my purposes it is imperative that the x-axis be explicitly defined. > I have tried to achieve this by using: matplotlib.pyplot.axis(v). > Where v is

Re: [Matplotlib-users] colorbar+log+latex

2011-01-25 Thread Eric Firing
On 01/25/2011 06:58 PM, Shrividya Ravi wrote: [...] > On the same topic of the colorbar, how can I readjust the colors such > that it only goes between user-specified values? For example, I have one > imshow plot where the values range between 0 and 350. However, I only > want to look at the values

Re: [Matplotlib-users] colorbar+log+latex

2011-01-25 Thread Eric Firing
On 01/25/2011 08:51 PM, Paul Ivanov wrote: > Eric Firing, on 2011-01-25 19:52, wrote: >> On 01/25/2011 06:58 PM, Shrividya Ravi wrote: >> [...] >>> On the same topic of the colorbar, how can I readjust the colors such >>> that it only goes between user-specifie

Re: [Matplotlib-users] pyplot: Extract contourset without plotting

2011-01-27 Thread Eric Firing
On 01/27/2011 09:21 AM, Daniel Fulger wrote: >> >> Dear all, >> >> contourset = pyplot.contour(..) >> >> calculates the contourset but also grabs whatever figure is currently >> active *somewhere* in the entire code >> and whichever scope it was created. The contours are plotted into it. >> >> Whil

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Eric Firing
On 02/01/2011 02:18 PM, Benjamin Root wrote: > On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin > wrote: > > On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root > wrote: > > > > > > On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin

Re: [Matplotlib-users] Trouble with imshow

2011-02-02 Thread Eric Firing
On 02/02/2011 03:08 PM, Robert Abiad wrote: > On 2/2/2011 3:59 PM, Christoph Gohlke wrote: >> On 2/2/2011 3:33 PM, Robert Abiad wrote: >>> Hello All, >>> >>> I'm very new to python, so bear with me. >>> >>> I'd like to use python to do my image processing, but I'm running into >>> behavior that do

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/02/2011 08:38 PM, Robert Abiad wrote: [...] I'll put it in as an enhancement, but I'm still unsure if there is a bug in there as well. Is there something I should be doing to clear memory after the first figure is closed other than close()? I don't understand why memory usage grows eac

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/02/2011 10:17 PM, Eric Firing wrote: > On 02/02/2011 08:38 PM, Robert Abiad wrote: >> > [...] >> I'll put it in as an enhancement, but I'm still unsure if there is a >> bug in >> there as well. Is there something I should be doing to clear memory >

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 11:30 AM, Robert Abiad wrote: On 2/3/2011 10:06 AM, Eric Firing wrote: On 02/02/2011 10:17 PM, Eric Firing wrote: On 02/02/2011 08:38 PM, Robert Abiad wrote: [...] I'll put it in as an enhancement, but I'm still unsure if there is a bug in there as well. Is there s

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 12:28 PM, Christoph Gohlke wrote: > > > On 2/3/2011 2:15 PM, Eric Firing wrote: >> On 02/03/2011 11:30 AM, Robert Abiad wrote: >>> On 2/3/2011 10:06 AM, Eric Firing wrote: >>>> On 02/02/2011 10:17 PM, Eric Firing wrote: >>>

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 01:02 PM, Christoph Gohlke wrote: > > > On 2/3/2011 2:44 PM, Eric Firing wrote: >> On 02/03/2011 12:28 PM, Christoph Gohlke wrote: >>> >>> >>> On 2/3/2011 2:15 PM, Eric Firing wrote: >>>> On 02/03/2011 11:30 AM, Robert Abia

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 03:04 PM, Benjamin Root wrote: > Also, not to sound too annoying, but has anyone considered the idea of > using compressed arrays for holding those rgba values? I don't see how that really helps; as far as I know, a full rgba array has to be passed into agg. What *does* help is us

Re: [Matplotlib-users] Trouble with imshow

2011-02-04 Thread Eric Firing
On 02/03/2011 05:35 PM, Christoph Gohlke wrote: > > > On 2/3/2011 6:50 PM, Eric Firing wrote: >> On 02/03/2011 03:04 PM, Benjamin Root wrote: >> >>> Also, not to sound too annoying, but has anyone considered the idea of >>> using compressed arrays for holdi

Re: [Matplotlib-users] Trouble with imshow

2011-02-04 Thread Eric Firing
On 02/04/2011 10:28 AM, Christoph Gohlke wrote: > > > On 2/4/2011 11:54 AM, Eric Firing wrote: >> On 02/03/2011 05:35 PM, Christoph Gohlke wrote: >>> >>> >>> On 2/3/2011 6:50 PM, Eric Firing wrote: >>>> On 02/03/2011 03:04 PM, Benjamin Root

Re: [Matplotlib-users] Trouble with imshow

2011-02-04 Thread Eric Firing
On 02/04/2011 11:33 AM, Eric Firing wrote: > On 02/04/2011 10:28 AM, Christoph Gohlke wrote: >> >> >> On 2/4/2011 11:54 AM, Eric Firing wrote: >>> On 02/03/2011 05:35 PM, Christoph Gohlke wrote: >>>> >>>> >>>> On 2/3/2011 6:50

Re: [Matplotlib-users] Trouble with imshow

2011-02-04 Thread Eric Firing
On 02/04/2011 12:33 PM, Christoph Gohlke wrote: > > > On 2/4/2011 2:14 PM, Eric Firing wrote: >> On 02/04/2011 11:33 AM, Eric Firing wrote: >>> On 02/04/2011 10:28 AM, Christoph Gohlke wrote: >>>> >>>> >>>> On 2/4/2011 11:54 AM, Eric

Re: [Matplotlib-users] Trouble with imshow

2011-02-05 Thread Eric Firing
On 02/04/2011 02:03 PM, Christoph Gohlke wrote: [...] > > How about these changes to color.py (attached). This avoids copies, uses > in-place operations, and calculates single precision when normalizing > small integer and float32 arrays. Similar could be done for LogNorm. Do > masked arrays suppor

Re: [Matplotlib-users] EMF support?

2011-02-07 Thread Eric Firing
On 02/07/2011 05:21 AM, Carlos Grohmann wrote: > Hello there > > Is there support for exporting graphics as EMF files? > >> From what I've seen it seems to be discontinued. > > best > > Carlos > > > Carlos, There is still a backend_emf.py, but I don't think it was ever complete (for example, it

Re: [Matplotlib-users] issues when saving files - no automatic extension added in dialog

2011-02-07 Thread Eric Firing
On 02/07/2011 05:47 AM, Carlos Grohmann wrote: > Hello all, > > I'm developing a software for Geology, using wxpython for the GUI. > When I want to export any graphics, clicking on the > "save" button on the MPL toolbar, I get a dialog to save the file > (with a default "image.png" filename) and wh

Re: [Matplotlib-users] imshow() with a colorbar?

2011-02-07 Thread Eric Firing
On 02/07/2011 10:48 AM, Daniel Mader wrote: > Hi, > > I am trying to add a (configurable) colorbar to a an array which I > simply plot with imshow(). > > Could anyone please help me how to enhance it with a colorbar? Check out the gallery; several examples there use a colorbar. http://matplotlib.

Re: [Matplotlib-users] description: unknown (?!?!?)

2011-02-08 Thread Eric Firing
On 02/08/2011 06:42 AM, Benjamin Root wrote: > > > On Thu, Feb 3, 2011 at 9:19 AM, Gf B > wrote: > > In many places in the mpl docs there are tables of supported "kwarg > properties" containing at least one (usually many) entries where the > description g

Re: [Matplotlib-users] Trouble with imshow

2011-02-08 Thread Eric Firing
On 02/08/2011 02:39 PM, Christoph Gohlke wrote: > > > Please consider the attached patch for the _image.frombyte function. It > avoids temporary copies in case of non-contiguous input arrays. Copying > a 1024x1024 slice out of a contiguous 4096x4096 RGBA or RGB array is > about 7x faster (a common

Re: [Matplotlib-users] Trouble with imshow

2011-02-09 Thread Eric Firing
On 02/09/2011 12:36 PM, Benjamin Root wrote: > On Wed, Feb 9, 2011 at 1:50 AM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 02/08/2011 02:39 PM, Christoph Gohlke wrote: > > > > > > > Please consider the attached patch for

Re: [Matplotlib-users] Trouble with imshow

2011-02-09 Thread Eric Firing
On 02/09/2011 02:29 PM, Benjamin Root wrote: > On Wed, Feb 9, 2011 at 1:50 AM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > > On 02/08/2011 02:39 PM, Christoph Gohlke wrote: > > > > > > > Please consider the attached patch for

Re: [Matplotlib-users] Trouble with imshow

2011-02-09 Thread Eric Firing
On 02/09/2011 02:29 PM, Benjamin Root wrote: > > Bug Report: > > At some point between the recent revision and r8934, setting the alpha > value to anythhing but None will cause the image to not show. I suspect > it has something to do with some of the recent revisions. Maybe the > alpha values w

Re: [Matplotlib-users] No qt4agg backends running on example file

2011-02-17 Thread Eric Firing
On 02/17/2011 06:41 PM, Jeffrey Spencer wrote: > Essentially, I am having the same problem but installed from SVN. How do > you install extra backends? I haven't seen where to do this. Although I > want the TKAgg but I have installed TK/TCL. Do you have the python-tk package installed? If not, th

Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-20 Thread Eric Firing
On 02/20/2011 06:17 AM, Daniel Hyams wrote: > > The function "clabel" does not allow the use of formatters for the > label; this small patch enables their use, so that one can pass in any > subclass of ticker.Formatter in the 'fmt' argument. > > Replace the following in contour.py: > > def get_

Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-20 Thread Eric Firing
On 02/20/2011 06:17 AM, Daniel Hyams wrote: > > The function "clabel" does not allow the use of formatters for the > label; this small patch enables their use, so that one can pass in any > subclass of ticker.Formatter in the 'fmt' argument. > > Replace the following in contour.py: > > def get_

Re: [Matplotlib-users] using contourf to plot masked array

2011-02-22 Thread Eric Firing
On 02/21/2011 07:27 PM, Zhaoru Zhang wrote: > Hi, > >I tried to use contourf to plot an array in which the land values have > been masked. However, I found that contourf did not deal with the masking > properly. I would expect the masked region to be bounded by the separation > line of land

Re: [Matplotlib-users] Can't set scatter plot point color

2011-03-04 Thread Eric Firing
On 03/02/2011 06:42 AM, Mr. Python wrote: > > I am unable to set the color of the scatter plot points using the code below: > > import matplotlib > matplotlib.use('Qt4Agg') > > import matplotlib.pyplot as plt > import numpy as np > > plt.scatter(newSpdVals, newEngLoadVals,c='g',marker='+') This is

<    5   6   7   8   9   10   11   12   13   14   >