Re: [Matplotlib-users] Matplotlib backend issue

2013-07-20 Thread Tommy Grav
On Jul 20, 2013, at 11:19 AM, Michiel de Hoon wrote: > Hi Tommy, > > Look inside the pyplot.py module. I don't have the code in front of me now, > but I guess it's a module that loads a bunch of other modules, and one of > those wants to use X11. This should not depend on whether the developer

Re: [Matplotlib-users] Fwd: Matplotlib backend issue

2013-07-20 Thread Tommy Grav
On Jul 20, 2013, at 9:09 AM, Michiel de Hoon wrote: > > The MacOSX backend itself does not use X11. So I would suggest to check which > modules get loaded when you import pyplot, and see which one of those causes > X11 to open. Thanks. How do I check which modules get loaded? When I import p

Re: [Matplotlib-users] Fwd: Matplotlib backend issue

2013-07-19 Thread Tommy Grav
On Jul 19, 2013, at 4:49 PM, Benjamin Root wrote: > What does "print matplotlib.get_backend()" say? 'MacOSX' -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with applicati

[Matplotlib-users] Fwd: Matplotlib backend issue

2013-07-19 Thread Tommy Grav
I just installed matplotlib on a new MacBook Pro ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.7.2 (default, Jun 24 2011, 12:20:15) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.

[Matplotlib-users] cmap normalization question

2011-10-31 Thread Tommy Grav
Hi, I have been looking around but can't find what I want. I have two arrays, one with numbers from 0.02 to 0.20 and the other from 0.03 to 0.50. I am trying to plot them together with other arrays in a scatterplot where these two are the color term plt.scatter(x1,y1,c=myarr1,cmap=plt.get_cmap

[Matplotlib-users] 64bit installer

2011-02-24 Thread Tommy Grav
Is there a 64bit installer of matplotlib for mac os x available? Cheers Tommy -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast

[Matplotlib-users] Axis line width and label problem

2010-11-21 Thread Tommy Grav
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. 2. When adding a label to plot (xlabel and ylabel) the label will be cropped if the font is large. Is there a way to rescale the plo

[Matplotlib-users] Tick label sizes

2010-08-04 Thread Tommy Grav
A rather simple question, but I could not find the answer while rummaging around on the matplotlib webpages. Is there a way to increase the size of the tick label sizes from say fontsize 9 to 12? Tommy -- The Palm PDK Hot

Re: [Matplotlib-users] Compile error

2010-07-20 Thread Tommy Grav
Sorry for the badly formatted email with broken threading (I realized that my matplotlib-user subscription was held due to my email bouncing earlier in the month. > Re: [Matplotlib-users] Compile error > From: Michael Droettboom - 2010-07-20 17:17 > It looks as if you do not have the fre

[Matplotlib-users] Compile error

2010-07-20 Thread Tommy Grav
I am trying to compile matplotlib for ActiveState 2.7.0.1 - 64bit on mac os x. I have installed numpy 1.4.1 and scipy 0.8.0 from source. Compiling matplotlib using sudo make -f make.osx fetch deps mpl_build mpl_install works fine, but sudo python setup.py build yields the error below. Anyone

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread Tommy Grav
On Jun 1, 2010, at 9:34 AM, Alan G Isaac wrote: > PS Btw, it gets said often but once more won't hurt: > Matplotlib is wonderful! I just wanted to second this. Having suffered many years with super mongo, matplotlib (and python in general) has made my work so much easier.

Re: [Matplotlib-users] AxesGrid question

2009-08-01 Thread Tommy Grav
aq.html#install-svn > > -JJ > > > > On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav wrote: >> i am trying to use the example at >> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html >> >> but axes_grid is not in mpl_toolkits for the

[Matplotlib-users] AxesGrid question

2009-07-31 Thread Tommy Grav
i am trying to use the example at http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html but axes_grid is not in mpl_toolkits for the standard matplotlib build. Where can I get the axes_grid tools? Cheers Tommy -

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-07-29 Thread Tommy Grav
On Jul 29, 2009, at 5:34 PM, Uri Laserson wrote: > Hi everyone, > > I am trying to build the latest svn trunk version of MPL on OS X > 10.5. I am getting the following error: > > ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, > file is not of required architecture for arc

Re: [Matplotlib-users] Plotting large images

2009-06-30 Thread Tommy Grav
> displaying. I've found that image sizes well over 1kx1k can take > some time to display, and those that are much larger can cause you > to run out of memory. At least, that's what I think is happening. > > Perry > > On Jun 30, 2009, at 7:20 PM, Tommy Grav wrote:

[Matplotlib-users] Plotting large images

2009-06-30 Thread Tommy Grav
I am trying to use imshow to plot some semi-large fits images. Here is the code: from math import * import numpy as np from matplotlib import pyplot as plt from matplotlib import cm as cm import pyfits cat = "/Volumes/Sweden/PS1SC/Data/PS20090603-3/MD09/skycell.092/" fname = "o4985g0263o.warp.MD

[Matplotlib-users] easy_install and eggs

2008-06-02 Thread Tommy Grav
I downloaded the egg for 0.98 from the matplotlib webpages, and I am trying to install it with easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.eg

Re: [Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1

2008-05-28 Thread Tommy Grav
On May 28, 2008, at 2:27 PM, John Hunter wrote: > On Wed, May 28, 2008 at 1:21 PM, Eric Firing <[EMAIL PROTECTED]> > wrote: > >> Maybe someone can provide, or has provided, a universal binary of >> 0.91.2 >> built against numpy 1.1? > > Does it need to be built against numpy 1.1? I thought t

Re: [Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1

2008-05-28 Thread Tommy Grav
On May 28, 2008, at 2:21 PM, Eric Firing wrote: > Building on the Mac seems to be a nightmare. There are various emails > and howto writeups (including one of John's) floating around, but I > don't know that it has ever all been consolidated into one easy-to- > find, > easy-to-use set of instru

Re: [Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1

2008-05-28 Thread Tommy Grav
On May 28, 2008, at 1:54 PM, Eric Firing wrote: > Tommy, > > That's right. If you upgrade numpy you need to upgrade mpl to > 0.91.2 or later. > > Eric I am trying to build matplotlib from svn, but run into this error: running build running build_py copying lib/matplotlib/mpl-data/matplotlibr

[Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1

2008-05-28 Thread Tommy Grav
[skathi:~/Work/myCode/pyS3M] tgrav% python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>>

[Matplotlib-users] imshow alpha problem

2008-03-06 Thread Tommy Grav
I have an array of 0s and 1s and plot it with imshow. Is there a way to set the 0 part only to have a transparency (alpha)? Cheers Tommy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visu

Re: [Matplotlib-users] Basemap and imshow

2008-03-06 Thread Tommy Grav
map.imshow(coverage,interpolation="nearest",cmap=pylab.cm.hot_r) map.drawmapboundary() pylab.show() On Mar 6, 2008, at 11:10 AM, Jeff Whitaker wrote: > Tommy Grav wrote: >> Is there a way of using imshow together with a basemap? >> >> Cheers >>Tommy >> &g

[Matplotlib-users] Basemap and imshow

2008-03-06 Thread Tommy Grav
Is there a way of using imshow together with a basemap? Cheers Tommy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/

[Matplotlib-users] basemap and omerc

2008-02-13 Thread Tommy Grav
On Feb 12, 2008, at 8:39 PM, Evan Mason wrote: > dl = 2. > nx = int((M.xmax - M.xmin) / dl) + 1 > ny = int((M.ymax - M.ymin) / dl) + 1 > > lonr, latr = M.makegrid(nx, ny) > > plot(lonr, latr, 'c.') > show() I think you might be looking for M.plot() rather than plot()?? plot() will just overw

[Matplotlib-users] title when using subplot

2008-01-24 Thread Tommy Grav
I have a plot that is divided into four subplots. pylab.figure() pylab.subplot(221) pylab.plot(a,b,"k-") pylab.subplot(222) pylab.plot(a,b,"k-") pylab.subplot(223) pylab.plot(a,b,"k-") pylab.subplot(224) pylab.plot(a,b,"k-") I would like to add a title to the entire plot, but pylab.title() only a

Re: [Matplotlib-users] Update and replot data at a regular time rate

2007-10-10 Thread Tommy Grav
On Oct 10, 2007, at 12:53 PM, massimo sandal wrote: > sidimok ha scritto: >> I would write down an MPL script that loads a block data, >> generated on the >> fly (in a file) by another computing program, at a regular time >> rate, let's >> say every 30". The script may have an "exit button" t

Re: [Matplotlib-users] plot cdf

2007-09-26 Thread Tommy Grav
On Sep 26, 2007, at 5:09 PM, Alan Isaac wrote: > Is there a standard function or practice for > plotting the CDF of a series? (I am aware > of the output of hist.) Without really knowing what CDF is (I am assuming it is Cumulative Density Fucntion or something similar). I would suggest taking a

[Matplotlib-users] histogram question

2007-09-24 Thread Tommy Grav
I need to generate a set of histograms, but would like to plot only the "skyline" of the histogram, and leave out the vertical lines where adjencent bars touch. I have looked at the docs, but nothing jumped out at me as the right keyword for this. Is this possible? and if so, how? Cheers

[Matplotlib-users] Changing tick labels

2007-08-05 Thread Tommy Grav
I am creating a 2 dimensional histogram that I would like to plot as a contourf plot with matplotlib. I am using numpy to generate the histogram, but when I plot it the tick marks are of course the index of the histogram array. How do I change these tick labels to the value of the bins used t

[Matplotlib-users] Loop plotting question

2007-06-20 Thread Tommy Grav
I have a problem where I need to quickly inspect 20-30 plots. I want to open a plotting window, plot the first plot, then hit return to see the nest plot appear in the same window. Below is my script, but it creates a window that has to be closed before it loops over the rest of the plots. H

[Matplotlib-users] Cumulative histogram

2007-06-19 Thread Tommy Grav
I have an array of absolute magnitudes Hlist and would like to plot a cumulative histogram. Is there an easy way to do this in matplotlib? Cheers Tommy - This SF.net email is sponsored by DB2 Express Download DB2 Express

[Matplotlib-users] From list of objects to plotting

2007-05-04 Thread Tommy Grav
I have some code that simplified looks like this: class cKBO(object): def __init__(cls): cls.a = 0. cls.e = 0. lines = open("test.file","r").readlines() nlist = [] for line in lines: obj = cKBO() (a,e) = line.split obj.a = float(a)

[Matplotlib-users] Forcing full value on axis

2007-04-24 Thread Tommy Grav
I have a plot where the x axis ticks are given as 0.1 0.15 0.20 0.025 0.30 0.35 with +3.732e2 given in the lower right of the axis. How can I force the ticks to have 373.3 373.35 and so on? Cheers Tommy - Th

Re: [Matplotlib-users] Plotting two histograms

2007-04-06 Thread Tommy Grav
On Apr 6, 2007, at 1:04 PM, Jeff Whitaker wrote: > Tommy Grav wrote: >> I have two lists that I would like to plot as two separate >> histograms inside the same >> plot. However >> >> pylab.hist(h1list,26,facecolor='r') >> pylab.hist(h2list,

[Matplotlib-users] Plotting two histograms

2007-04-06 Thread Tommy Grav
I have two lists that I would like to plot as two separate histograms inside the same plot. However pylab.hist(h1list,26,facecolor='r') pylab.hist(h2list,26,alpha=0.3) pylab.show() seems to plot the two histograms with different x-y limits on the axis. Also how can I force the bins to have th

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Tommy Grav
"Operating System :: Microsoft :: Windows 9x", "Programming Language :: Python, wxPython", "Topic :: Home Use" "Natural Language :: German", "Natural Language :: French&

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Tommy Grav
It is hard to guess what exactly your problem is as you do not provide a code example or the traceback call of your exception. I would venture that you are trying to create a num_array without having Numerix, numpy or numarray imported or installed on your machine. Some more information ab

Re: [Matplotlib-users] Replotting inside a while loop

2007-01-23 Thread Tommy Grav
On Jan 23, 2007, at 1:28 PM, Darren Dale wrote: > On Tuesday 23 January 2007 13:20, Tommy Grav wrote: >> I have a program that enters a while loop, calculates a bunch of >> arrays and then plots >> a figure. The user then looks at the figure and is asked wether the &g

[Matplotlib-users] Replotting inside a while loop

2007-01-23 Thread Tommy Grav
I have a program that enters a while loop, calculates a bunch of arrays and then plots a figure. The user then looks at the figure and is asked wether the result is ok. If the answer is no, then the calculations are redone and the figure replotted. If the answer is yes then it exits the loop.

Re: [Matplotlib-users] Problem with set_xlim

2007-01-04 Thread Tommy Grav
You have to use set_ylim((0,2)) to set the y limits. Cheers Tommy On Jan 4, 2007, at 11:09 AM, Berthold Höllmann wrote: > Considering the following script I would Expect a resulting y range of > (1, 2) but I get (1, 3). Is this a bug or a feature. I'm using python > 2.5, matplotlib 0.87.7. >

[Matplotlib-users] Alloc error

2006-12-01 Thread Tommy Grav
I recently upgraded to the latest version of matplotlib using the ScipySuperpack. However it seems that pylab is not playing nice with Tcl/Tkinter, creating an alloc problem. I am using ActiveTcl 8.5.00 and TclTkAquaBI-8.4.9.1. The error is shown below: [EMAIL PROTECTED] Phoebe1/Red -> python Ac

[Matplotlib-users] ScipySuperpack

2006-12-01 Thread Tommy Grav
I installed the Mac ScipySuperpack (from http://www.scipy.org/Download). However it seems that the version of matplotlib in there is not compatible with their version of numpy [EMAIL PROTECTED] ch2/pbcd -> python ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3 (#1,

Re: [Matplotlib-users] Alloc error

2006-10-16 Thread Tommy Grav
Hi,   I figured out that I could get matplotlib 0.87.6 for python 2.4 and have downloaded this and installed it. It seems to work, except when I try to do thisActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based onPython 2.4.3 (#1, Apr  3 2006, 18:07:18) [GCC 3.3 20030304 (Apple Computer,

[Matplotlib-users] Alloc error

2006-10-16 Thread Tommy Grav
Hi,     I am currently running ActivePython 2.4.3 b11, with numpy 1.12881 and matplotlib 0.87.4. Running a code developed before I upgraded using theScipy Superpack for Mac (PowerPc) available at http://www.scipy.org/DownloadI get this error:[EMAIL PROTECTED] Spitzer/Objects -> redspit -i Albiorix1

[Matplotlib-users] x and y pointer positions

2006-08-27 Thread Tommy Grav
In a plot window (using Tkagg). just right of the menu the x and y positions of the pointer is shown when the mouse is in the window. Since I am using small windows this will change the size of the window. Is there a way to setthe format or remove this text?Cheers Tommy[EMAIL PROTECTED]http://homep

Re: [Matplotlib-users] Weird resizing issue

2006-07-24 Thread Tommy Grav
This is the same behavior that I see. The window resizes horisontally whenthe pointer is inside the window, although the window behaves erratically asit resizes. Moving the pointer to the right will cause the window to grow thenreduce size as you go further right. As soon as the pointer leaves the

[Matplotlib-users] Weird resizing issue

2006-07-22 Thread Tommy Grav
I am using matplotlib to display a couple of fits-images and then use the mouse to select a source in the image. However, when I click on the window containing the image to get it into focus the window starts resizing itself based on the movement of the mouse. I am on a mac with OS 10.4 and are usi

[Matplotlib-users] No resizing of figures

2006-07-18 Thread Tommy Grav
Is there a keyword or a function to lock the figures so that they can not be resized?Cheers Tommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genious -- and a lot of courage -- to move in the opposit

[Matplotlib-users] Event handling for several windows

2006-07-17 Thread Tommy Grav
I have a program that uses matplotlib to plot two images. figim24 = figure(figsize=(5,5)) figim70 = figure(figsize=(5,5)) I want an event loop that will be able to register which of the two figures I mouse click in. When I only had one figure I used figim24.canvas.mpl_connect("button_press_event